« Return to Thread: Newbie rrdupdate question

Newbie rrdupdate question

by Husky :: Rate this Message:

Reply to Author | View in Thread

Hi,

Trying to add my first data to an rrd database.  The following command returns the data item of interest:

$ snmpget -v 1 -c public -Oqv 192.168.1.105 SNMPv2-SMI::enterprises.20916.1.4.1.1.1.1.0
7280

The following command works:
$ sudo rrdupdate /usr/local/rrd/temp.rrd N:7280

The command I want to use fails in the following way:
$ sudo rrdupdate /usr/local/rrd/temp.rrd N:'snmpget -v 1 -c public -0qv 192.168.1.105 SNMPv2-SMI::enterprises.20916.1.4.1.1.1.1.0'
ERROR: expected 1 data source readings (got 3) from snmpget ...

Temp.rrd is defined with 1 data source.  The snmpget seems to return 1 value.  When I use it in the rrdupdate it seems to find 3 values returned from the snmpget.  I am new to rrdtool, new to snmp, and fairly new to Mac OS X, which is where I am trying this, so there is much room for me doing something wrong.  Any help would be appreciated.
Thanks

 « Return to Thread: Newbie rrdupdate question