Using back slashes worked, thanks! When the setup.php page reloaded
after applying the changes the field now shows "c:\\php\\php.exe" (that
is NOT what I typed in). But after the change manually running the
poller.bat file spawns multiple comand windows and populates the \rrd
directory.
In the api.inc.php file I could not find the parameter you mentioned,
only this section:
function create_command_line ($command_line) {
if (get_config_option("os_type")=="windows")
$open = "start /MIN $command_line";
else
$open = $command_line." &";
return $open;
}
function jffnms_shared ($module) {
return
get_config_option("jffnms_real_path")."/engine/shared/".$module.".inc.ph
p";
}
function spawn ($command = false, $parameters = "", $max_instances =
2) {
if (!$command) $command = get_config_option("php_executable")."
-q ".$_SERVER["argv"][0];
$command_line = "$command $parameters";
if (is_process_running($command_line,$max_instances) === false)
{
$open = create_command_line($command_line);
echo "Executing: $open\n";
$p = popen($open,"w");
} else
logger ($command_line." is already running $max_instances
times.\n");
}
-----Original Message-----
From: Javier Szyszlican [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 02, 2005 3:44 PM
Cc: [email protected]
Subject: Re: [jffnms-users] PHP error
Try changing it to \ slashes.
If that doesn't work check the lib/api.inc.php file,
generate_command_line function.
Javier
Ed Humes wrote:
> PHP Executable path is set to "c:/php/php.exe" and has the green "OK"
> flag next to it. There's no issue with using forward-slashes instead
> of back-slashes right? Under the PHP Status section of setup.php all
> flags are green also, except for PostgreSQL module loaded.
>
> I know this version is pre-release, just hoping to provide some
> feedback from the Windoze community.
>
> -----Original Message-----
> From: Javier Szyszlican [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 02, 2005 2:50 PM
> Cc: [email protected]
> Subject: Re: [jffnms-users] PHP error
>
>
> Hi,
>
> It seems your PHP executable is "/php" that is wrong.
>
> Run setup.php and change it to c:\php\php.exe
>
> Javier
>
> Ed Humes wrote:
>
>>I upgraded from 0.7.9 to 0.8.0-pre3 and something broke in my php
>>configuration, but I have no idea what that was. Here's the results of
>
>
>>manually running poller.bat and poller.php:
>>C:\jffnms\engine\windows\poller.bat
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>
>>C:\php\php.exe -f c:\jffnms\engine\poller.php > nul:
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>Invalid switch - "/php".
>>
>>C:\php\php.exe -f c:\jffnms\engine\poller.php
>>Executing: start /MIN /php -q c:\jffnms\engine\poller.php 7,4 0 0 0
>>Invalid switch - "/php".
>>Executing: start /MIN /php -q c:\jffnms\engine\poller.php 3,10 0 0 0
>>Invalid switch - "/php".
>>Executing: start /MIN /php -q c:\jffnms\engine\poller.php 9,2 0 0 0
>>Invalid switch - "/php".
>>Executing: start /MIN /php -q c:\jffnms\engine\poller.php 5,6 0 0 0
>>Invalid switch - "/php".
>>
>>Any ideas what I need to edit?
>>Ed
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by: IntelliVIEW -- Interactive
>>Reporting Tool for open source databases. Create drag-&-drop reports.
>>Save time by over 75%! Publish reports on the web. Export to DOC, XLS,
>
>
>>RTF, etc. Download a FREE copy at
>>http://www.intelliview.com/go/osdn_nl
>>_______________________________________________
>>jffnms-users mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/jffnms-users
>
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Javier Szyszlican, Project Leader, JFFNMS
[EMAIL PROTECTED]
I hope JFFNMS or I were helpful to you, if you
can, please donate at http://jffnms.org/donate
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time by
over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users