Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Viewing the current and previous week together

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
fizz



Joined: 13 Feb 2008
Posts: 2

PostPosted: Fri Feb 29, 2008 12:00 pm    Post subject: Viewing the current and previous week together Reply with quote

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

PostPosted: Fri Feb 29, 2008 12:21 pm    Post subject: Reply with quote

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

PostPosted: Fri Feb 29, 2008 1:48 pm    Post subject: Reply with quote

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

PostPosted: Sat Mar 01, 2008 6:17 am    Post subject: Reply with quote

This would be a plugin. See http://www.cactiusers.org for help
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group