[rrd-users] Expected 2 data source readings but got 3

Cliff cliff at acsalaska.net
Thu Nov 7 06:43:28 MET 2002


Hi folks - perl problem again...I think?

When run by hand - this is the error:

ERROR: expected 2 data source readings (got 3)
from N:0.20:0.16:0.17:...
(these are the load averages from the script below)

Here's the data gather script which seems to work fine.
#!/usr/bin/perl
$ip_address = "127.0.0.1";

$min1 = `snmpget -Ov $ip_address public laLoad.1`;
$min5 = `snmpget -Ov $ip_address public laLoad.2`;
$min15 = `snmpget -Ov $ip_address public laLoad.3`;
chomp ($min1) ;
chomp ($min5) ;
chomp ($min15) ;

#print "$min1";
#print "$min5";
#print "$min15";

$update = `/usr/rrdtool/bin/rrdtool update /web/homenet/rrd/wmere_enet.rrd N:$min1:$min5:$min15` ;

Here's how the rrd was created:

/usr/rrdtool/bin/rrdtool create /web/homenet/rrd/wmere_loadavg.rrd \
   DS:1min:COUNTER:600:U:U   \
   DS:5min:COUNTER:600:U:U  \
   DS:15min:COUNTER:600:U:U  \
   RRA:AVERAGE:0.5:1:600      \
   RRA:AVERAGE:0.5:6:700      \
   RRA:AVERAGE:0.5:24:775     \
   RRA:AVERAGE:0.5:288:797    \
   RRA:MAX:0.5:1:600          \
   RRA:MAX:0.5:6:700          \
   RRA:MAX:0.5:24:775         \
   RRA:MAX:0.5:288:797

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