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.
Was on v0.8.8 something forever and then went to v1.1.37 and recently to v1.2.2. Ever since I left v0.8.8 a PHP script I have to count modems connected to a device no longer works. It continues to work on devices that I added under old version but doesn't return any data on new devices I've added since being on the 1.x.x platform. I've tried to run my script from the command line as well and confirmed it to give me zero results. No clue what I'm missing. Code is below. Can anyone offer me some ideas or things to try?
Look at the Poller Cache (utilities) and find the command being used, then run that at the command line and see what output you get. Also, compare your script with others in the scripts folder. finally, make sure the definition is correct in the Data Input Methods.
Sounds like the new device doesn't support it. Why don't you check with SNMPWALK ? Either that or your have the wrong configuration options for the SNMP of the device.
The new device is the same as the old device and I can use MIB Browser and pull all the values from the OID without issue.
The issue is the Script Server and php from command line I get 0's for all results with script on NEW devices
On OLD devices the script works fine and populates the data using the Script Server but it's all 0's if I run from command line with php. That is what I showed in my last post with running same command as in poller cache and getting 0's and I attached an image to show that Script Server is still somehow able to get data into my graphs.
Then it sounds like either your custom script is wrong or you're querying the wrong OIDs or your device requires you define the access list of connecting SNMP devices. Hard to say without knowing your custom script and having access to diagnose what's going on. If all else fails, but debug statements into the script and see what it's actually trying to do, then verify manually it's right.
I copied and pasted the custom script into my first post. Is there a place to hire someone to debug this as everything I’ve documented is the extent of what I know to do to troubleshoot.
1. Goto the Data Input Method, edit it, edit one of the rows, hit save, hit save on the input method
2. Goto the Data Source Template, edit it, save it
3. Goto the Graph Template, edit it, save it, return from it, select it in the list, sync it (actions at the bottom)
4. Goto the Device Template, edit it, save it, return from it, select it in the list, sync it (actions at the bottom)
After that it started working again. Thanks for all the help!