Warning: exec() [function.exec]: Unable to fork ?!!

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

Moderators: Developers, Moderators

Post Reply
prenat
Posts: 9
Joined: Wed Jun 08, 2005 9:41 am
Location: Paris, France

Warning: exec() [function.exec]: Unable to fork ?!!

Post by prenat »

Hi !

I'm using :
cacti 0.8.6-f fresh install
Windows 2000 server
IIS 5.0
NO Net-SNMP
PHP5

All the configuration is OK :
php.ini --> c:\winnt,
snmp php module, socket php module are loaded,
MIBSDIR and PHPRC paths are properly configured,
PHP is also working (i make the test with php_info();), and return the correct parameters.

BUT
I have this message when i added a new host : [zubenelgenubi is the community string].

Code: Select all

Warning: exec() [function.exec]: Unable to fork [c:\php\php-win.exe -q C:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php force.orc.fr zubenelgenubi 1 4 161 500 index] in C:\Inetpub\wwwroot\cacti\lib\functions.php on line 1161

Warning: exec() [function.exec]: Unable to fork [c:\php\php-win.exe -q C:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php force.orc.fr zubenelgenubi 1 4 161 500 query index] in C:\Inetpub\wwwroot\cacti\lib\functions.php on line 1161

Warning: exec() [function.exec]: Unable to fork [c:\php\php-win.exe -q C:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php force.orc.fr zubenelgenubi 1 4 161 500 query description] in C:\Inetpub\wwwroot\cacti\lib\functions.php on line 1161

Warning: exec() [function.exec]: Unable to fork [c:\php\php-win.exe -q C:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php force.orc.fr zubenelgenubi 1 4 161 500 query sau] in C:\Inetpub\wwwroot\cacti\lib\functions.php on line 1161

Warning: exec() [function.exec]: Unable to fork [c:\php\php-win.exe -q C:\Inetpub\wwwroot\cacti\scripts\ss_host_cpu.php force.orc.fr zubenelgenubi 1 161 500 index] in C:\Inetpub\wwwroot\cacti\lib\functions.php on line 1161

Warning: exec() [function.exec]: Unable to fork [c:\php\php-win.exe -q C:\Inetpub\wwwroot\cacti\scripts\ss_host_cpu.php force.orc.fr zubenelgenubi 1 161 500 query index] in C:\Inetpub\wwwroot\cacti\lib\functions.php on line 1161

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

It seem to be a problem with the data queries (SNMP - Get Mounted Partitions and SNMP - Get Processor Information), except with the SNMP - Interface Statistics one who works fine.
When i tried to "reload" the query by clicking the small green circle that's don't work anymore, and when i want to "verbose query", that is the same type of error.
I'm very disapointed by the parameter -q of php-win.exe [c:\php\php-win.exe -q].
What's the signification of this?

If someone had the same error and found the solution it would be very usefull to me !! :)

Thanks in advance,

Best regards,

Julien Prénat

P.S Excuse for my French !
Have Fun !
prenat
Posts: 9
Joined: Wed Jun 08, 2005 9:41 am
Location: Paris, France

Post by prenat »

That's ok !
probleme was solved.
In fact there were permissions on c:\winnt\cmd.exe which make somes problemes with the IUSR_XXXX !! (the internet account which not allowed read/execute cmd.exe, therefore the IUSR_XXX have the good permissions!).
Now, all it's ok.
Sorry for disturbing you..
Just a little question : what does the -q parameter mean?

Thank you for this great product ;)

Best Regards,
Have Fun !
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

prenat wrote:Just a little question : what does the -q parameter mean?
C:\php>php -?
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
php <file> [args...]
-a Run interactively
-C Do not chdir to the script's directory
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse <file>. Implies `-q'
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z <file> Load Zend extension <file>.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests