[rrd-users] I need help with my rrd file

alucard95 jo_crj at hotmail.com
Fri Sep 26 15:06:38 CEST 2008


Thank you for all your answers!!

Now i modifie my script like this : 

 #!/bin/sh
 a=0
 while [ "$a" != 0 ]; do
snmpget -Oqv -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.10.4 >  $in

snmpget -Oqv -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.16.4 >  $out
    
     # I can use N as a replacement for the current time
     rrdtool update /home/zabbix/switch.rrd N:$in:$out
     # sleep until the next 300 seconds are full
     perl -e 'sleep 30 - time % 30'
 done # end of while loop

But when i create a graphic :

rrdtool graph switch.png --start -86400 --end +86400 \
            DEF:inoctets=switch.rrd:input:AVERAGE \
            DEF:outoctets=switch.rrd:output:AVERAGE \
            AREA:inoctets#00FF00:"In traffic" \
            LINE1:outoctets#0000FF:"Out traffic"

There is no data. 

I launch my script like this : 

#sh script_name.sh

do I make a mistake somewhere??

-- 
View this message in context: http://n2.nabble.com/I-need-help-with-my-rrd-file-tp1120359p1120825.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.



More information about the rrd-users mailing list