get snmp data return Unknown

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
jimithing
Posts: 2
Joined: Tue Jun 11, 2002 11:31 am

get snmp data return Unknown

Post by jimithing »

I'm trying to get SNMP data that returns a good value when "snmpget" is run. But Cacti/RRDtools continues to show Unknown/NAN

Setup is like:

/usr/local/rrdtool-1.0.38/bin/rrdtool create \
/var/www/html/phpwebsite/cacti/rra/jbr_usrs.rrd \
--step 300 \
DS:jbr_usrs:GAUGE:600:0:1 \
RRA:LAST:0.5:1:600 \

INTERNAL: [127.0.0.1/private] OID: [.1.3.6.1.4.1.2021.2789.51.101.1]
/usr/local/rrdtool-1.0.38/bin/rrdtool update /var/www/html/phpwebsite/cacti/rra/jbr_usrs.rrd --template jbr_usrs N:U

Running the scripts/snmp.pl file returns the expected value.

Any help appreciated.
dave
Posts: 11
Joined: Tue Apr 02, 2002 3:30 am
Location: North Yorks

Re: get snmp data return Unknown

Post by dave »

jimithing wrote: DS:jbr_usrs:GAUGE:600:0:1 \
I'll guess from the above that your problem is the "maximum value" for the datasource. At the moment its set to 1 so any value above 1 won't be recorded. Change it to a number bigger than the maximum value your expecting to record (remember to tick the "update changes in .rrd file" box when you save the change) and see if that cures the problem.
jimithing
Posts: 2
Joined: Tue Jun 11, 2002 11:31 am

Thanks.

Post by jimithing »

I figured this out after stumbling through it for a while.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests