[rrd-users] week/month/year graphs showing false values
Torsten Puls
torsten.puls at ovh.net
Fri Feb 3 16:48:21 MET 2006
Hello everybody,
I use the skript below to create graphs from the mailgraph prog.
Background, I can't use CGI.
It works good. Now I've tried to create graphs for a week, month
and year. I changed --start=-86400 to -604800 (-2592000, -31536000).
But it isn't enough. The graphs showing false values. So what's wrong?
/usr/local/rrdtool/bin/rrdtool graph /home/www/monitoring/test_$1.png \
--start=-86400 \
--end=-60 \
--title="Bounced / Rejected Mails" \
--base=1000 \
--height=150 \
--width=540 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="msgs/sec" \
DEF:a="/home/rrdtool/scripts/mailgraph.rrd":sent:AVERAGE \
DEF:b="/home/rrdtool/scripts/mailgraph.rrd":recv:AVERAGE \
CDEF:cdefa=a,60,* \
CDEF:cdefb=a,UN,0,a,IF,480,* \
CDEF:cdefc=PREV,UN,cdefb,PREV,IF,cdefb,+ \
CDEF:cdeff=b,60,* \
CDEF:cdefg=b,UN,0,b,IF,480,* \
CDEF:cdefh=PREV,UN,cdefg,PREV,IF,cdefg,+ \
AREA:cdefa#4123A1:"Sent" \
COMMENT:"" \
GPRINT:cdefc:MAX:" total\:%8.0lf" \
GPRINT:cdefa:AVERAGE:"average\: %.2lf msgs/min" \
GPRINT:cdefa:MAX:"max\: %.0lf msgs/min\n" \
LINE2:cdeff#009900:"Recieved" \
COMMENT:"" \
GPRINT:cdefh:MAX:"total\:%8.0lf" \
GPRINT:cdeff:AVERAGE:"average\: %.2lf msgs/min" \
GPRINT:cdeff:MAX:"max\: %.0lf msgs/min\n" \
HRULE:0#000000:"" \
COMMENT:"\s" \
COMMENT:"(Last updated\: $(/bin/date "+%d.%m.%Y %H\:%M\:%S")" > /dev/null
--
MfG
Torsten
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the rrd-users
mailing list