I have written a script that gets the wind speed off a website, in both KM/h and Knots.
The script returns the values as follows:
Code: Select all
speedkm:23 SpKN:12
I have watched the poller output and this is the relevant line:
Code: Select all
10/11/2006 05:35:08 PM - CACTID: Poller[0] Host[17] DS[149] SCRIPT: /var/www/html/cacti/scripts/wind.pl, output: speedkm:11 SpKN:6
So I have setup the Data Input Method, with both the output fields labeled correctly, I have setup a Data Template, using both the output fields in separate data source items, and then I setup a Graph Template.
This is the part that does not seem to be working.
I wanted to be tricky and have 2 lines, one for KM/h and one for Knots.
So i setup the Graph template, added Line1 as the speed_km and then Line2 as the speed_knots (as well as some gprints).
Last, I added a device using the new graph template, and waited for a few runs to happen, then checked the graph, and it drew half ok.
It draws the speed_knots line, but not the speed_km line, and for the gprint values at the bottom of the graph (i have last, average, and max for both lines), it shows that speed_knots has the correct values, but speed_km values are set to "nan" indicating to me that it cant get the values.
I can upload my exported templates and any other relevant info if needed, but I am really after some help on how to work out where the issue is and then how to fix it.
Is there commands I can run to find out if the data that is being received from the script is being parsed correctly and then put into the RRD files?
How can I tell where this is breaking?
Any help would be much appreciated.
-Hurgh-