[rrd-users] How can I get the accurate data from the graph by rrdtool?

Chunjing Han chjhan at cstnet.cn
Tue Aug 29 08:06:00 MEST 2006


hi ,all:
    I have used the Smokeping to get the graph of network delay and loss package rate. the graphs include daily  ,month and year rrdtool picture. In the rrdtool graph , the max and average data of ping are listed at the bottom of the picture .But I found that the max ping in the month graph is lower than the daily graph. moreover,the max ping in the year graph is lower than the monthly graph. Because the different max ping and the importance of the max ping ,I can't show the graph to explain the network trend. 
    How can I get the accurate data from the graph by rrdtool? 
the following is my rrdtool graph function:


@task=('/var/www/html/smokeping1/'.$target.'_'.$start.'.png',
'--lazy',
'--start',( $mode eq 's' ? '-'.$start : $start),
'--height','200',
'--width','600',
'--title',$desc,
'--lower-limit','0',
'--vertical-label',"seconds",
'--imgformat','PNG',
'--color', 'SHADEA#ffffff',
'--color', 'SHADEB#ffffff',
'--color', 'BACK#ffffff',
'--color', 'CANVAS#ffffff',
'--color', 'FONT#003399',
'--color', 'GRID#3987D8',
'--color', 'MGRID#3987D8',
'DEF:ping1='.${rrd}.':ping1:AVERAGE',
'DEF:ping2='.${rrd}.':ping2:AVERAGE',
'DEF:ping3='.${rrd}.':ping3:AVERAGE',
'DEF:ping4='.${rrd}.':ping4:AVERAGE',
'DEF:ping5='.${rrd}.':ping5:AVERAGE',
'CDEF:cp1=ping1,0,'.($val*1.5).',LIMIT',
'CDEF:cp2=ping2,0,'.($val*1.5).',LIMIT',
'CDEF:cp3=ping3,0,'.($val*1.5).',LIMIT',
'CDEF:cp4=ping4,0,'.($val*1.5).',LIMIT',
'CDEF:cp5=ping5,0,'.($val*1.5).',LIMIT',
'DEF:median='.${rrd}.':median:AVERAGE',
'DEF:loss='.${rrd}.':loss:AVERAGE',
'CDEF:nodata=loss,UN,INF,UNKN,IF',
'CDEF:break=loss,5,-,UNKN,INF,IF',
'CDEF:live=loss,5,LT,INF,UNKN,IF',
'AREA:nodata#FEFBC4',
'AREA:live#EAFFCC',
'AREA:break#FFE0E0',
'CDEF:ploss=loss,5,/,100,*',
'GPRINT:median:AVERAGE:Median Ping RTT (%.1lf %ss avg)',
'GPRINT:median:MAX:Max Ping RTT (%.1lf %ss max)',
'LINE1:median#5555FF',
'COMMENT:\l',
'GPRINT:ploss:AVERAGE:Packet Loss\: %.1lf %% average',
'GPRINT:ploss:MAX:%.1lf %% maximum',
'GPRINT:ploss:LAST:%.1lf %% current\l',

'HRULE:0#000000',
'COMMENT:\s',
'COMMENT:Probe: 5 ICMP Echo Pings (56 Bytes) every 240 seconds',
'COMMENT:created on '.$date.'\j'
);	

my ($graphret,$xs,$ys) = RRDs::graph @task;
my $ERROR = RRDs::error();

	

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Chunjing Han

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡chjhan at cstnet.cn
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2006-08-29
-- Attached file removed by Ecartis and put at URL below --
-- Type: application/octet-stream
-- Size: 309 bytes
-- URL : http://lists.ee.ethz.ch/p/02-Chunjing%20Han.VCF


--
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