[rrd-users] Error while updating database

Dayo Adeyeye dayo at ipnxnigeria.net
Wed Sep 10 21:34:14 MEST 2003


Hello,
Below is my rrd database:

 /usr/local/rrdtool/bin/rrdtool create alvarion.rrd 
DS:input:COUNTER:600:U:U DS:output: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

Below is the script for updating my database:

#!/bin/bash

ipaddr=$1
box=$2
community=$3

if1input=$(snmpget -c $community $ipaddr .1.3.6.1.2.1.2.2.1.10.1 | awk '{print $3}')
if1output=$(snmpget -c $community $ipaddr .1.3.6.1.2.1.2.2.1.16.1 | awk '{print $3}')

/usr/local/rrdtool/bin/rrdtool update /usr/local/rrdtool/bin/"$box".rrd N:${if1input}:${if1output}
~
Now when I run the following command: ./fillrrd.sh 10.163.50.1 alvarion community_string

I get the following error:  expected 2 data source readings (got 4) from N:Counter32::Counter32::....

How can I correct this please ?

Kind regards.

Dayo Adeyeye


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