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

Rene Fritzsche Rene at deinheld.de
Fri Sep 26 13:45:35 CEST 2008


Hi,

> >Show us the output of your snmpget command. I guess it looks like this:
> 
> >maus at kanga:~$  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
> 
> Yes, the output is : IF-MIB::ifOutOctets.4 = Counter32: 461597000

as Alexander wrote; this whole output-line can not be used to be filled
in the rrdupdate... you need to seperate/cut out the counter-value and
use only this.
eg.

change
  snmpwalk ... 1.3.6.1.2.1.2.2.1.16.4 > $out
to
  snmpwalk ... 1.3.6.1.2.1.2.2.1.16.4 | sed 's/^.*: \([0-9]*]\)$/\1/' > $out

this should seperate the last numbers starting after the : to your variable.


HTH
 Rene.

_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220



More information about the rrd-users mailing list