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 run into this problem whenever it start query SNMP data. Anyone can help? I'm using the following UCD-SNMP 4.X.
Error Code
Warning: exec(): Unable to fork [c:\rrdtool\snmpget.exe -M c:\rrdtool\mibs -O v -v1 -t 1 192.168.20.3:161 public .1.3.6.1.2.1.1.1.0] in D:\wwwroot\cacti\lib\snmp.php on line 55
SNMP error
I cut & paste the execute command from above error code & it able to query SNMP perfectly.
RUN c:\rrdtool\snmpget.exe -M c:\rrdtool\mibs -O v -v1 -t 1 192.168.20.3:161 public .1.3.6.1.2.1.1.1.0
This usually indicates a permissions problem. If you are getting these errors when this query runs in the cacti console, you may want to make sure the user account the web server is using has execute permissions for snmpget.exe
I found out the problem. It was due to IIS Lock down tool security lock on cmd file. You need to release the right on cmd file or copy the cmd file to your php directory then it solve the problem.