Well, I Tested .63 under Win2K and It's No Lovin'

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

Moderators: Developers, Moderators

Post Reply
Guest

Post by Guest »

I know the app wasn't designed for it, but I was determined... Problem exists calling the RRDTOOL.EXE from within the CMD_FUNCTIONS.PHP file. Tried all of the PHP execute functions - exec, system, ` `, etc. No go. I can see RRDTOOL being called, but apparently there's a forking issue in PHP4WIN and the data never comes back. Tried every PHP release from 4.04 to 4.20 devel... CGI and ISAPI...

I know, I know -"get a REAL OS!" Has anyone else tried it ?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

I have made some changes to version 0.6.4 to make cacti more Win2k-friendly. However I ran into the same problem as you when it came to calling rrdtool.exe.

For unix platforms, this line works ok when calling rrdtool:

$fp = popen($config["path_rrdtool"]["value"] . " $command_line", "r");

I had to add a 'binary flag' to make it work under win32 however:

$fp = popen($config["path_rrdtool"]["value"] . " $command_line", "rb");

Tell me if this works for you.
-Ian
Guest

Post by Guest »

Nyet, Nada, But Still Hopefulless.

I see an error message about "unable to parse ''"

Also, could the "echo" command in PHP be confusing windows to run CMD ?

What version of PHP and Version of Windows SP, etc are you running ?

BTW, Raxnet rules! Thanks for focusing on
us Windows dweebs.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Maybe version 0.6.4 will treat you better. Both the tutorial and the new version are on the raXnet page.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest