On Fri, Sep 26, 2008 at 01:50:13AM -0700, alucard95 wrote: > Hello!! Hi.
> I need some help with my rrd file. I want to do graphs of input and output > traffic of my network. [... snipp ...] > 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 *ahem* Why do you do an snmpWALK ? To just fetch an SNMP entry use snmpget. Show us the output of your snmpget command. I guess it looks like this: [EMAIL PROTECTED]:~$ snmpwalk -v2c -c public 192.168.1.222 1.3.6.1.2.1.2.2.1.16.4 IF-MIB::ifOutOctets.4 = Counter32: 262658353 > # I can use N as a replacement for the current time > rrdtool update /home/zabbix/switch.rrd N:$in:$out See the comment about the format above. I guess you are calling rrdtool update /home/zabbix/switch.rrd N:IF-MIB::ifInOctets.4 = Counter32: 262658353:IF-MIB::ifOutOctets.4 = Counter32: 262658353 and this will definetively NOT work. Did you run your script by hand? Did it produce any error messages? > # sleep until the next 300 seconds are full > perl -e 'sleep 30 - time % 30' Aeeehhhhh ... whats wrong with sleep 300 ? (ah and you will sleep for 30 seconds. not 300). > done # end of while loop HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de
pgpY3WH1h7oxp.pgp
Description: PGP signature
_______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
