I'm getting the following error displayed on the page above my only device configuration:
Warning: exec(): Unable to fork [c:/net-snmp/bin/snmpget.exe -O fntev -c "<my community>" -v 2c -t 1 -r 3 <my ip> .1.3.6.1.2.1.1.1.0] in c:\inetpub\wwwroot\cacti\lib\snmp.php on line 83
SNMP error
From looking at the other postings about forking errors, it is usually due to permissions on the cmd.exe. I have full control over cmd.exe for both the IUSR_xxx and the IIS_WPG.
Also, when I create the "localhost" device per BSOD's manual I get a page full of:
Warning: exec(): Unable to fork [c:/net-snmp/bin/snmpwalk.exe -O QfntUe -c "public" -v 1 -t 1 -r 3 localhost:161 .1.3.6.1.2.1.2.2.1.1] in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1161
Warning: Variable passed to each() is not an array or object in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1165
Warning: exec(): Unable to fork [c:/net-snmp/bin/snmpget.exe -O fntev -c "public" -v 1 -t 1 -r 3 localhost:161 .1.3.6.1.2.1.1.3.0] in c:\inetpub\wwwroot\cacti\lib\snmp.php on line 83
Warning: exec(): Unable to fork [c:\php\php.exe -q c:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php localhost 10 1:161:500:public:::MD5::[None] index] in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1161
Warning: Variable passed to each() is not an array or object in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1165
Warning: exec(): Unable to fork [c:\php\php.exe -q c:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php localhost 10 1:161:500:public:::MD5::[None] query index] in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1161
Warning: Variable passed to each() is not an array or object in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1165
Warning: exec(): Unable to fork [c:\php\php.exe -q c:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php localhost 10 1:161:500:public:::MD5::[None] query description] in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1161
Warning: Variable passed to each() is not an array or object in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1165
Warning: exec(): Unable to fork [c:\php\php.exe -q c:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php localhost 10 1:161:500:public:::MD5::[None] query sau] in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1161
Warning: Variable passed to each() is not an array or object in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1165
Warning: exec(): Unable to fork [c:/net-snmp/bin/snmpget.exe -O fntev -c "public" -v 1 -t 1 -r 3 localhost:161 .1.3.6.1.2.1.1.3.0] in c:\inetpub\wwwroot\cacti\lib\snmp.php on line 83
Warning: exec(): Unable to fork [c:\php\php.exe -q c:\inetpub\wwwroot\cacti\scripts\ss_host_cpu.php localhost 10 1:161:500:public:::MD5::[None] index] in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1161
Warning: Variable passed to each() is not an array or object in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1165
Warning: exec(): Unable to fork [c:\php\php.exe -q c:\inetpub\wwwroot\cacti\scripts\ss_host_cpu.php localhost 10 1:161:500:public:::MD5::[None] query index] in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1161
Warning: Variable passed to each() is not an array or object in c:\inetpub\wwwroot\cacti\lib\functions.php on line 1165
Warning: exec(): Unable to fork [c:/net-snmp/bin/snmpget.exe -O fntev -c "public" -v 1 -t 1 -r 3 localhost:161 .1.3.6.1.2.1.1.3.0] in c:\inetpub\wwwroot\cacti\lib\snmp.php on line 83
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\cacti\lib\functions.php:1161) in c:\inetpub\wwwroot\cacti\host.php on line 132
Can someone assist. I think I'm close to getting this thing up and running. This is a Win2k3 server, Cacti 0.8.6g with patches, php 4.4.1, mysql 4.1.15, net-snmp 5.1.2.1 and the rrdtool 1.2.11 downloaded from the cacti downloads area.
Thanks in advance.
Scott
snmp error - unable to fork
Moderators: Developers, Moderators
It's likely either the path to your net-snmp binarys are invalid or the IIS_WPG / IIS_USR user don't have read access to the net-snmp / PHP binarys.
"Unable to fork" means it can't start a process (child process), which is likely a permission problem somewhere.
"Unable to fork" means it can't start a process (child process), which is likely a permission problem somewhere.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
There isn't any debugging you can do with Cacti to find whats causing the fork errors. You could use Sysinternals FileMon and look what happens when you get those fork errors. I'm guessing you'll be looking for 'acces denied' errors in result column.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 8 guests