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"
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
Thanks!