[rrd-users] Re: NEWBIE Question about RRDUPDATE

SWATTON, JEANINE jeanine_swatton at appsig.com
Mon May 23 06:47:36 MEST 2005


Make sure for each snmpget, only one value is returned.  You may have to
do a chomp or something in your script.  I believe ifInOctets should
only return 1 value.  

Rather than updating the database, execute an snmpget for each, and see
what it is returning.

Based on your error messages, the database was created to accept 2
readings, and apparently, it is getting 6 readings.  Therefore, it will
not update anything.



 

-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of ram
Sent: Sunday, May 22, 2005 12:44 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] NEWBIE Question about RRDUPDATE

Hi 

iam trying to deploye rrdtools in my network
so start learning in process, when i make
rrdtool create works good
when i try to update iam getting following error
could some one help me

[root at fc4 rrt]# rrdupdate bandwidth.rrd N:\ '/usr/bin/snmpget -v 1 -c
public  -Oqv localhost IF-MIB::ifInOctets.1':\ '/usr/bin/snmpget -v 1
-c public -Oqv localhost  IF-MIB::ifOutOctets.1'
RRDtool 1.0.49  Copyright 1997-2000 by Tobias Oetiker <tobi at oetiker.ch>

Usage: rrdupdate filename
                        [--template|-t ds-name:ds-name:...]
                        time|N:value[:value...]

                        [ time:value[:value...] ..]

ERROR: expected 2 data source readings (got 6) from N:
/usr/bin/snmpget -v 1 -c public -Oqv localhost IF-MIB::ifInOctets.1:
/usr/bin/snmpget -v 1 -c public -Oqv localhost 
IF-MIB::ifOutOctets.1:...


what is wrong iam doing ??

ram

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list