Comparing yesterdays data from RRD

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
alchemyx
Posts: 4
Joined: Thu Feb 09, 2012 6:51 am

Comparing yesterdays data from RRD

Post by alchemyx »

Hello,

We are currently finishing our migration to cacti (earlier we had our own rrd and rrdcgis). One of last problem is how to recreate following code in Cacti:

Code: Select all

RRD::GRAPH
                /var/www/stats.acsystemy.pl/rrd/ipcount-8hrs.png
                --font DEFAULT:7 -t "Liczba aktywnych uzytkownikow sieci - 8 godzin"
                --x-grid MINUTE:30:HOUR:1:HOUR:1:0:%H:%M
                -w 300 -h 150 -v "Liczba uzytkownikow" -E
                --imginfo '<IMG SRC=/rrd/%s WIDTH=%lu HEIGHT=%lu BORDER=0>'
                --lazy --start -8h --end now
                DEF:ip=/var/www/stats.acsystemy.pl/rrd/ipcount.rrd:active:AVERAGE
                DEF:ipold=/var/www/stats.acsystemy.pl/rrd/ipcount.rrd:active:AVERAGE:start=-32h:end=-24h
                SHIFT:ipold:86400
                COMMENT:"             "
                COMMENT:"MIN     "
                COMMENT:"AVG     "
                COMMENT:"MAX     "
                COMMENT:"LAST      \n"
                LINE2:ipold#ffd8d8:"wczoraj "
                GPRINT:ipold:MIN:"%6.3lf %s"
                GPRINT:ipold:AVERAGE:"%6.3lf %s"
                GPRINT:ipold:MAX:"%6.3lf %s"
                GPRINT:ipold:LAST:"%6.3lf %s\n"
                LINE:ip#ff0000:"dzisiaj"
                GPRINT:ip:MIN:"%6.3lf %s"
                GPRINT:ip:AVERAGE:"%6.3lf %s"
                GPRINT:ip:MAX:"%6.3lf %s"
                GPRINT:ip:LAST:"%6.3lf %s\n"
                COMMENT:" \n"
So as you can see we are showing on same graph values from today and yesterday for quick compatision. It is done in those two lines:

Code: Select all

                DEF:ip=/var/www/stats.acsystemy.pl/rrd/ipcount.rrd:active:AVERAGE
                DEF:ipold=/var/www/stats.acsystemy.pl/rrd/ipcount.rrd:active:AVERAGE:start=-32h:end=-24h
                SHIFT:ipold:86400
How to do it Cacti-way?

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

Re: Comparing yesterdays data from RRD

Post by gandalf »

We neither have --lazy support nor SHIFT support yet. That will come in 1.0.0
R.
alchemyx
Posts: 4
Joined: Thu Feb 09, 2012 6:51 am

Re: Comparing yesterdays data from RRD

Post by alchemyx »

OK, thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests