Skip navigation
5449 Views 13 Replies Latest reply: Apr 30, 2013 8:44 AM by Yasha Zislin RSS
Yasha Zislin Rank: Green Belt 139 posts since
Oct 20, 2011
Currently Being Moderated

Feb 27, 2012 5:22 PM

RRD has NAN values

I have a custom command as my datasource.

Here it is

/usr/bin/snmpwalk -OqvU -${device/zSnmpVer} -c${device/zSnmpCommunity} ${device/manageIp} .1.3.6.1.2.1.25.3.3.1.1 | wc -l | sed 's/^/Anything | numOfCPUs=/'

 

That OID basically gives a list of CPU ids. I am simply adding it together and get this result.

Anything | numOfCPUs=4

 

numOfCPUs is a datapoint. So zencommand supposed to run the custom command and store output in this datapoint.

 

I have enabled debuging for zencommand and I see the following (I have removed snmp community strings and IPs):

 

Command: "/bin/sh -c exec /usr/bin/snmpwalk -OqvU -vX -cX xxx.xxx.xxx.xxx .1.3.6.1.2.1.25.3.3.1.1 | wc -l | sed 's/^/Anything | numOfCPUs=/'"

2012-02-27 16:42:25,788 DEBUG zen.zencommand: Output: 'Anything | numOfCPUs=4\n'

2012-02-27 16:42:25,789 DEBUG zen.zencommand: Process snmpwalk -OqvU -vX -cX xxx.xxx.xxx.xxx .1.3.6.1.2.1.25.3.3.1.1 | wc -l | sed 's/^/Anything | numOfCPUs=/'  stopped (0), 0.54 seconds elapsed

2012-02-27 16:42:25,790 DEBUG zen.zencommand: Dropping useless clear event {'manager': 'zenoss', 'eventKey': 'numberOfCPUs', 'device': 'xxx.xxx.xxx.xxx', 'eventClass': '/Cmd/Ok', 'summary': "Cmd: /usr/bin/snmpwalk -OqvU -vX -cX xxx.xxx.xxx.xxx .1.3.6.1.2.1.25.3.3.1.1 | wc -l | sed 's/^/Anything | numOfCPUs=/' - Code: 0 - Msg: Success", 'component': '', 'monitor': 'localhost', 'agent': 'zencommand', 'severity': 0}

2012-02-27 16:42:25,791 DEBUG zen.zencommand: The result of "/usr/bin/snmpwalk -OqvU -vX -cX xxx.xxx.xxx.xxx .1.3.6.1.2.1.25.3.3.1.1 | wc -l | sed 's/^/Anything | numOfCPUs=/'" was "'Anything | numOfCPUs=4\n'"

2012-02-27 16:42:25,794 DEBUG zen.zencommand: Dropping useless clear event {'severity': 0, 'performanceData': [' numOfCPUs=4'], 'component': '', 'agent': 'zencommand', 'summary': 'Anything ', 'manager': 'zenoss', 'eventKey': 'numberOfCPUs', 'device': 'xxx.xxx.xxx.xxx', 'message': 'Anything | numOfCPUs=4\n', 'eventClass': '/Cmd/Ok', 'monitor': 'localhost'}

2012-02-27 16:42:25,794 DEBUG zen.zencommand: Storing numOfCPUs = 4.0 into Devices/xxx.xxx.xxx.xxx/numberOfCPUs_numOfCPUs

2012-02-27 16:42:25,795 DEBUG zen.RRDUtil: /opt/zenoss/perf/Devices/xxx.xxx.xxx.xxx/numberOfCPUs_numOfCPUs.rrd: 4.0

2012-02-27 16:42:25,795 DEBUG zen.zencommand: RRD save result: 4.0

 

So judging by last few lines, everything seems to be ok.

I try to graph that. Even though that value doesnt change it should just say 4 all the time. BTW, it's GAUGE datasource.

But it says NaN.

 

So I went into console for zenoss and found that rrd file.

I ran:

rrdtool dump filename.rrd

It gave me a huge list of entries but values there are NaN.

 

I am going nuts here. It says it is storing but it is not in the rrd.

 

Help please.

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points