[rrd-users] Data Gatherer for RRDTool

Cliff cliff at acsalaska.net
Tue Nov 5 15:19:47 MET 2002


Hi folks

The example in the RRDTool tutorial is non-specific.
Could someone please correct my perl data gatherer?
Or show me an example that works?
Here is my perl script which does not work.
Thanks in advance.

#!/usr/bin/perl

$ip_address = "127.0.0.1";
$in = `snmpwalk -Ov -v 1 $ip_address public 2.2.1.10.2`;
$in =~ s/Counter32\: //g;

#print "$in";

$out = `snmpwalk -Ov -v 1 $ip_address public 2.2.1.16.2`;
$out =~ s/Counter32\: //g;
#print "$out";

$do_command = "/usr/rrdtool/bin/rrdtool update /web/homenet/rrd/wmere_enet.rrd N:$in:$out" ;

#man snmpget
#$syscontact = `snmpwalk -Ov -v 1 $ip_address public .1.3.6.1.2.1.1.4.0`;

--
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