Unable to Fork

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

Moderators: Developers, Moderators

Post Reply
PiercedKnob
Cacti User
Posts: 61
Joined: Tue Dec 06, 2005 8:36 am
Location: UK
Contact:

Unable to Fork

Post by PiercedKnob »

Hi ppl,

I am a newbi here, i have just tried to get this installed on a Windows 2003 Server, Php 5.1.1, MySQL 5. PHP is setup correctly and MySQL is correctly configured.

I have made the changes for Cacti as per the document. Put RRDTool (OFF THIS DOWNLOADS AREA) into a folder and set this up when i first ran cacti. Read/Write to the correct folders as per the instructions.

The problem i am having is that i keep getting Warnings when i do anything within Cacti. For example, i have just tried to add an SNMP Communtiy name for a server and i got the warning (this also came up when i first ran cacti after filling in the first screen).

"WArning: exec() [function.exec]: Unable to fork [ -0 fntev -c "NAME" -v 1 -t 1 -r 3 127.0.0.1:161 .1.3.6.1.2.1.1.1.0] in F:\webroot\cacti\snmp.php on line 83. SMTP Error"

Anyone any idea why i am getting this ?

Cheers

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

Post by BSOD2600 »

MySQL 5 is not supported... yet. Go back to 4.1 and then see what problems you might have. Read the guide in my signature.
PiercedKnob
Cacti User
Posts: 61
Joined: Tue Dec 06, 2005 8:36 am
Location: UK
Contact:

Post by PiercedKnob »

Hi,

Thanks for your response. I have finally got around to re-imaging the server and installing MySQL 4.1. I have configured the database and ran the SQL script. When i then go to the install folder to run the install i still get unable to fork errors ?

Exact Error;

"Warning: [function.exec]: Unable to fork [perl F:\Webroot\cacti\scripts\query_unix_partitions.ph index] in F:\Webroot\cacti\lib\functions.php on line 1161

Anyone any ideas ?

Cheers

Wayne[/b]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) read the guide in my signature
2) unless you're querying a Linux computer, you don't want to be running that script/data query anyways.
3) You have a permission problem, which is causing that fork error. Double check the security settings outlined in my guide.
PiercedKnob
Cacti User
Posts: 61
Joined: Tue Dec 06, 2005 8:36 am
Location: UK
Contact:

Post by PiercedKnob »

Thanks for the instructions/guide. I have followed this and think its now working ok. I did notice that for some reason under the IIS portion the ISAPI Filters tab, the ISAPI filter would not load. I have just removed this and its all working ok ?

Do you know of any instructions on installing the net-snmp portion, i have been unable to find any installation instructions for Windows ?

Cheers

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

Post by BSOD2600 »

Install what part of net-snmp exactly? The binaries are only required if you want to poll devices with snmp v3, since the SNMP in PHP can do v1/v2. The net-snmp snmp agent is not required either.... but take your pick if you want to use that or the Microsoft one.
PiercedKnob
Cacti User
Posts: 61
Joined: Tue Dec 06, 2005 8:36 am
Location: UK
Contact:

Post by PiercedKnob »

Thanks again for your reply. I was after installing the binaries and couldn't find any instructions on this for Windows. I wasn't aware that the php extension could be used for version 1/2 so i will leave this as it is then :)

Cheers

Wayne
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest