[rrd-users] I need help with my rrd file
alucard95
jo_crj at hotmail.com
Fri Sep 26 10:50:13 CEST 2008
Hello!!
I need some help with my rrd file. I want to do graphs of input and output
traffic of my network.
I create the follow rrd file:
rrdtool create switch.rrd \
DS:input:COUNTER:600:U:U \
DS:output:COUNTER:600:U:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797
next i create a script to upload my rrd file :
#!/bin/sh
a=0
while [ "$a" != 0 ]; do
snmpwalk -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.10.4 > $in
snmpwalk -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 graph, he's empty. I think there is a problem with the
rrd file because when i do a rrdtool fetch, i have the answer "nan".
if anybody can help me
Thanks
--
View this message in context: http://n2.nabble.com/I-need-help-with-my-rrd-file-tp1120359p1120359.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
More information about the rrd-users
mailing list