|
|
| Author |
Message |
fizz
Joined: 13 Feb 2008 Posts: 2
|
Posted: Fri Feb 29, 2008 12:00 pm Post subject: Viewing the current and previous week together |
|
|
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/rrdgraph_examples.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 |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12186 Location: Muenster, Germany
|
Posted: Fri Feb 29, 2008 12:21 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
fizz
Joined: 13 Feb 2008 Posts: 2
|
Posted: Fri Feb 29, 2008 1:48 pm Post subject: |
|
|
Thanks for you reply gandalf.
Can I possibly develop an addon or anything like that which would help me do it?
Thanks,
--fizz |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12186 Location: Muenster, Germany
|
|
| Back to top |
|
 |
|