Viewing the current and previous week together

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Post Reply
Author
Message
fizz
Posts: 2
Joined: Wed Feb 13, 2008 3:41 pm

Viewing the current and previous week together

#1 Post by fizz » Fri Feb 29, 2008 12:00 pm

Hi all,
I'm interested in displaying in the same graph one line for the current time and one line for the previous week. It's pretty simple to do it in RRDTool:
DEF:thisweek=router.rrd:ds0:AVERAGE
DEF:lastweek=router.rrd:ds0:AVERAGE:end=now-1w:start=end-1w
(pasted from http://oss.oetiker.ch/rrdtool/doc/rrdgr ... es.en.html)

So basically, what I need to do is add some string after the Consolidation Function (AVERAGE/LAST/MIN/MAX) string. Unfortunately, I could not find how to do that when creating a graph template in Cacti. :(

Any help would be very appreciated!

Thanks a lot,
--fizz

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#2 Post by gandalf » Fri Feb 29, 2008 12:21 pm

This feature is currently not supported by cacti.
What comes nearest is the timeshifter, e.g. shift the current graph(s) one week back and forth in time. But it will reload the graphs and you'll only see either current OR previous week.
Reinhard

fizz
Posts: 2
Joined: Wed Feb 13, 2008 3:41 pm

#3 Post by fizz » Fri Feb 29, 2008 1:48 pm

Thanks for you reply gandalf.
Can I possibly develop an addon or anything like that which would help me do it?

Thanks,
--fizz

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#4 Post by gandalf » Sat Mar 01, 2008 6:17 am

This would be a plugin. See http://www.cactiusers.org for help
Reinhard

Post Reply