I'm experiencing some very strange results with a custom script running through the script server. When I test the script through the script server I get the following output...
Which is the correct result. However, I get NaN's in the graphs.email-tg:169 monportal-tg:0 portal-tg:2 ug-auth:82 ww-auth:0 wwemail-tg:9 wwportal-tg:0
I've ran the poller with logging set to debug for one poller cycle and I get the following in the log for the same script...
Which happens to be the same output as I get from another script server script for the same device...02/15/2012 10:50:20 AM - CMDPHP: Poller[0] Host[191] DS[15037] SERVER: /dump/www/html/cacti/scripts/ss_bbc_myconnect_session_count.php ss_bbc_myconnect_session_count 132.185.151.137 4r0snmp 2 161 500 , output: 18
I'm also seeing some other strange entries in the logs that appear to have the reverse issue...02/15/2012 10:50:20 AM - CMDPHP: Poller[0] Host[191] DS[3668] SERVER: /dump/www/html/cacti/scripts/ss_cisco_cpu_usage.php ss_cisco_cpu_usage 132.185.151.137:2:4r0snmp:::::::161:500 get fiveMin 2, output: 18
Anyone got any ideas, hints, clues as to why this might be happening? I've tried repairing the database and rebuilding the poller cache to no avail!!!02/15/2012 10:50:20 AM - CMDPHP: Poller[0] Host[191] DS[3667] SERVER: /dump/www/html/cacti/scripts/ss_cisco_cpu_usage.php ss_cisco_cpu_usage 132.185.151.137:2:4r0snmp:::::::161:500 get fiveMin 1, output: email-tg:198 monportal-tg:0 portal-tg:1 ug-auth:92 ww-auth:0 wwemail-tg:5 wwportal-tg:0