[rrd-users] I need help with my rrd file
Andy Riebs
andy.riebs at hp.com
Mon Sep 29 14:23:23 CEST 2008
Fixing your original script...
-------
#!/bin/sh
a=0
while [ "$a" != 0 ]; do
in=`snmpwalk -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.10.4`
out=`snmpwalk -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.16.4`
# 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
--------
/andy
On Monday 29 September 2008 08:11:08 am alucard95 wrote:
> When i do the 'echo', i have the result :
>
> #sh test_script.sh
> 77134772:461597000
>
> but not in my rrd file:
>
> #rrdtool fetch switch.rrd AVERAGE
>
> the result is: nan nan
> --
> View this message in context:
> http://n2.nabble.com/I-need-help-with-my-rrd-file-tp1120359p1125660.htm
>l Sent from the RRDtool Users Mailinglist mailing list archive at
> Nabble.com.
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
--
Andy Riebs, HP Scalable Computing and Infrastructure / Linux R&D
(w) andy.riebs at hp.com Technology for better business outcomes
+1 (978) 748-0043 (Mon,Thu,Fri)
+1 (508) 467-3002 (Tue,Wed)
(h) andy at candooz.com My opinions are not necessarily those of HP
More information about the rrd-users
mailing list