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 ?
Well, I Tested .63 under Win2K and It's No Lovin'
Moderators: Developers, Moderators
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
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
Who is online
Users browsing this forum: No registered users and 1 guest