[rrd-users] Graph Error ?
ICALLING
icalling at gmail.com
Tue Dec 5 09:38:46 MET 2006
Hello ,
I have made the folowing graph:
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SoftSwitch - Total Trafic Per Operator" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="NrOffCallsPerOperator" \
--slope-mode \
DEF:a="/var/www/cacti-0.8.6i/rra/softswitch_snmp_oid1_all_142.rrd":snmp_oid:AVERAGE
\
DEF:b="/var/www/cacti-0.8.6i/rra/softswitch_snmp_oid_60.rrd":snmp_oid:AVERAGE
\
DEF:c="/var/www/cacti-0.8.6i/rra/softswitch_snmp_oid_183.rrd":snmp_oid:AVERAGE
\
DEF:d="/var/www/cacti-0.8.6i/rra/softswitch_snmp_oid_66.rrd":snmp_oid:AVERAGE
\
CDEF:cdefca=TIME,1165299244,GT,a,a,UN,0,a,IF,IF,TIME,1165299244,GT,b,b,UN,0,b,IF,IF,TIME,1165299244,GT,c,c,UN,0,c,IF,IF,TIME,1165299244,GT,d,d,UN,0,d,IF,IF,+,+,+
\
AREA:a#DE0056:"OP1 \:" \
GPRINT:a:LAST:"Current\:%2.0lf%S" \
GPRINT:a:MIN:"Min\:%2.0lf%S" \
GPRINT:a:MAX:"Max\:%2.0lf%S" \
GPRINT:a:AVERAGE:"Average\:%2.0lf%S\n" \
LINE2:b#7EE600:"OP2\:" \
GPRINT:b:LAST:" Current\:%2.0lf%S" \
GPRINT:b:MIN:"Min\:%2.0lf%S" \
GPRINT:b:MAX:"Max\:%2.0lf%S" \
GPRINT:b:AVERAGE:"Average\:%2.0lf%S\n" \
LINE2:c#F9FD5F:"OP3\:" \
GPRINT:c:LAST:" Current\:%2.0lf%S" \
GPRINT:c:MIN:"Min\:%2.0lf%S" \
GPRINT:c:MAX:"Max\:%2.0lf%S" \
GPRINT:c:AVERAGE:"Average\:%2.0lf%S\n" \
LINE2:d#002A8F:"OP4\:" \
GPRINT:d:LAST:" Current\:%2.0lf%S" \
GPRINT:d:MIN:"Min\:%2.0lf%S" \
GPRINT:d:MAX:"Max\:%2.0lf%S" \
GPRINT:d:AVERAGE:"Average\:%2.0lf%S\n" \
GPRINT:cdefca:LAST:"Current\:%8.0lf\n" \
GPRINT:cdefca:AVERAGE:"Average\:%8.0lf\n" \
GPRINT:cdefca:MAX:"Maximum\:%8.0lf\n"
The image displayed is ok, except the fact that the sum for maximum is
wrong. Where i is the mistake ?
--
Alex Mitrus
Voip Integrator
-- Attached file removed by Ecartis and put at URL below --
-- Type: image/bmp
-- Size: 495k (507190 bytes)
-- URL : http://lists.ee.ethz.ch/p/untitled.bmp
--
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