Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I can run it from the command line no probem. script takes an ip address and a second parameter like so:
python3 /opt/cacti/scripts/bsCallStats.py 192.168.10.38 5
So I've created a data input method for this script, data source templates, and now I'm trying to graph two of those outputs but I'm just getting NaN... There's nothing in the logs that indicates what is happening.
Anyone have any advice on how to troubleshoot this? With a lack of indication in the cacti logs i don't know where to start. screenshot attached that may be relevant.
Thanks
Data input method for script
data input method.png (33.27 KiB) Viewed 3292 times
Data input method for script
data input method.png (33.27 KiB) Viewed 3292 times
Data input method for script
data input method.png (33.27 KiB) Viewed 3292 times
Attachments
One of the data source templates I'm trying to graph.
Data Source Template.png (36.84 KiB) Viewed 3292 times
Last edited by kmart on Fri Aug 02, 2019 1:08 am, edited 1 time in total.
well i enabled debug logging and i can see that the script runs with the proper output. The script server parses the output properly and appears to put it in the rrd according to the log but my graph still has no data.
Throw enough crap at the wall and eventually something will stick...
Turns out it was the minimal_heartbeat setting in the rrd that was the problem.
I've been dealing with odd issues here and there since upgrading from 0.8.8 to 1.2.2. One of them seems to be that my 5 minute polling data profile has a heartbeat setting of 2 minutes (120 seconds) after the upgrade.
I've raised a feature request on github to report this, probably in the troubleshooting -> datasources section. Though a daily or weekly check for that kind of issue would probably not go amiss.