snmp error - unable to fork

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
biscotti
Posts: 2
Joined: Mon Dec 05, 2005 6:59 pm
Location: Pensacola, FL
Contact:

snmp error - unable to fork

Post by biscotti »

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
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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.
biscotti
Posts: 2
Joined: Mon Dec 05, 2005 6:59 pm
Location: Pensacola, FL
Contact:

Post by biscotti »

I just gave IUSR_ and WPG "full" access permissions to everything and am still getting the same error. Is there any other debugging that I can do, maybe on the command line or something?

When I set it up, I copied and pasted the directory paths directly from your manual.

Scott
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests