Data sources show 0 in rrd with data input method script
Ryan Rawdon <[email protected]>
| Newsgroups | gmane.network.cacti.user |
|---|---|
| Message-ID | <[email protected]> |
Hello all, I have written a python script which in turn queries a cloud service management API to get information about a storage mechanism (nor important). The script prints out 7 field-value pairs for cacti to parse while polling: entityblobassoc:7314 failedworkitems:4 mydeployments:24 sqlbac:2 wad-control-container:97 workerlogs:1343 meta-all:8784 The poller seems to be calling this correctly: 07/16/2012 03:00:26 PM - CMDPHP: Poller[0] Host[5] DS[29] CMD: python /opt/opstools/cacti/azure-container-count.py meta-all, output: entityblobassoc:7314 failedworkitems:4 mydeployments:24 sqlbac:2 wad-control-container:97 workerlogs:1343 meta-all:8784 But when I look in the RRD file, a few of the data stores are receiving zero values: meta-all entityblobassoc failedworkitems mydeployments sqlbac wadcontrolcontainer workerlogs 1342464300: 8.7519499090e+03 0.0000000000e+00 4.0000000000e+00 2.4000000000e+01 2.0000000000e+00 9.7000000000e+01 0.0000000000e+00 1342464600: 8.7840000000e+03 -nan 4.0000000000e+00 2.4000000000e+01 2.0000000000e+00 9.7000000000e+01 -nan 1342464900: 8.7840000000e+03 -nan 4.0000000000e+00 2.4000000000e+01 2.0000000000e+00 9.7000000000e+01 -nan 1342465200: 8.7840000000e+03 -nan 4.0000000000e+00 2.4000000000e+01 2.0000000000e+00 9.7000000000e+01 -nan In particular, the 2nd column of the RRD (entityblobassoc) should be non-zero as you can see from the poller log Here is the configuration for that field in the data template: http://r.u13.net/permatemp/entityblobassoc.png I have spent a few hours trying to figure out why this is happening and look forward to any tips you all can provide ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/