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 am having some issues with a php script I have modified to run in cacti. My goal is to use snmp on a linux box to get memory statics. I went though the forums and found some scripts and templates others have made in the past. I then modified it to work with the newer catci via documentation I found on cacti web site.
I am only have one issue. When I test the script via script_server.php it works and returns values. When cacti runs the script via the poller (cmd.php) I returns values of 0.
I'm sure I am missing something that is in the manual (and yes I thought I read it).
This what I get when I run it from the command line:
Thanks for the suggestion. I did check the poller cache it looked good. However I did rebuild it just to make sure. Next I am going to do a tcpdump just to see what is being sent and received.
When I look at the response packet information it had 5 OID bindings as I would expect and they all have values in the packet. However the poller does not recognize them or something.