[rrd-users] Re: expected 2 data source got <8>

Erik de Mare erik at oezie.org
Wed Apr 28 13:06:22 MEST 2004

instead of 

snmpwalk -v 1 -c public addr


snmpwalk -O vq -v 1 -c public addr

look at snmpwalk -h
-O OUTOPTS            Toggle various defaults controlling output display:
                          v:  print values only (not OID = value)
                          q:  quick print for easier parsing

>use lib qw( "C:/mrtg-2.10.13/bin/mrtg1);
>use RRDs;
>use Net::SNMP;
>$in1=`snmpwalk -v 1 -c public addr`;
>$out1=`snmpwalk -v 1 -c public addr`;
>print $in1;
>print $out1;
>my $ERR=RRDs::error;
>die "ERROR while updating mydemo.rrd: $ERR\n" if $ERR;
>sleep(300 );

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list