Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
You should get a response. If not, post that information here.
TheWitness
It seems OK.
01/23/2006 12:03:53 PM - PHPSVR: Poller[0] ERROR: The PHP Script Server MUST be started using the full path to the file and in lower case. This is a PHP Bug!!!
D:\Programme\Cacti-NetworkMonitoring>php d:/programme/cacti-networkmonitoring/script_server.php
PHP Script Server has Started - Parent is cmd
D:/Programme/Cacti-NetworkMonitoring/scripts/ss_fping.php ss_fping usterix 10 ICMP
min:0.1800 avg:2.2050 max:4.3100 dev:1.4573 loss:0.0000
So, is this working now? I need to revisit that issue and take the warning message out of the script_server. However, before I do that, I have to somehow manage to get some time to verify that it's fixed in all versions of PHP that we think are important.
TheWitness
True understanding begins only when we realize how little we truly understand...
TheWitness wrote:So, is this working now? I need to revisit that issue and take the warning message out of the script_server. However, before I do that, I have to somehow manage to get some time to verify that it's fixed in all versions of PHP that we think are important.
TheWitness
I don't really understand.
without full path it doesn't function:
D:\Programme\Cacti-NetworkMonitoring>php script_server.php
01/23/2006 12:03:53 PM - PHPSVR: Poller[0] ERROR: The PHP Script Server MUST be started using the full path to the file and in lower case. This is a PHP Bug!!!
it seems to function only with full path... and direct from shell.
Or do you mind about something else ? problem of ss_fping ?
with poller.php I get always the error:
01/23/2006 01:32:47 PM - CACTID: Poller[0] ERROR: SS[0] PHP Script Server communications lost.
/* PHP Bug. Not yet logged */
if ($config["cacti_server_os"] == "win32") {
$guess = substr(__FILE__,0,2);
if ($guess == strtoupper($guess)) {
$response = "ERROR: The PHP Script Server MUST be started using the full path to the file and in lower case. This is a PHP Bug!!!";
print "\n";
cacti_log($response, true, "PHPSVR");
exit(-1);
}
}
True understanding begins only when we realize how little we truly understand...
TheWitness wrote:Your path must be in lower case. Otherwise, you may remove that section of code from script_server.php and test.
change NOT only there !!
The problem could be when cactid starts the php script under windows. cactid has to starts with lowercase ... after that in the script we can use uppercase ... see here
D:\Programme\Cacti-NetworkMonitoring>php script_server.php
PHP Script Server has Started - Parent is cmd
D:/Programme/Cacti-NetworkMonitoring/scripts/ss_fping.php ss_fping usterix 10 ICMP
D:\Programme\Cacti-NetworkMonitoring>php D:/Programme/Cacti-Networkmonitoring/script_server.php
PHP Script Server has Started - Parent is cmd
d:/programme/cacti-networkMonitoring/scripts/ss_fping.php ss_fping usterix 10 ICMP
About my problem (Windows with Uppercase and Cactid -> no scripts are executed).
I don't know if it is the best way to solve it, but it functions and the scripts are sucessful and fast executed. I have won almost 2/3 of the time.
I have done the following changes in the poller.php:
in poller.php
first in order to be sure
/* Update web paths for the poller */
$newpathwin = strtr(strtolower(substr(dirname(__FILE__), 0, 1) . substr(dirname(__FILE__), 1)),"\\", "/");
$newpath= addslashes(($config["cacti_server_os"] == "win32") ? $newpathwin : dirname(__FILE__));
db_execute("replace into settings (name,value) values ('path_webroot','" . $newpath . "')");
gcc -DHAVE_CONFIG_H -I. -I. -I./config -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/mysql/include -g -O2 -c `test -f 'nft_popen.c' || echo './'`nft_popen.c
nft_popen.c: In function `nft_pclose':
nft_popen.c:317: error: `SIGTERM' undeclared (first use in this function)
nft_popen.c:317: error: (Each undeclared identifier is reported only once
nft_popen.c:317: error: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `nft_popen.o'
Nevermind.. Just noticed a few others saying the same things.
mfreeman451 wrote:gcc -DHAVE_CONFIG_H -I. -I. -I./config -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/mysql/include -g -O2 -c `test -f 'nft_popen.c' || echo './'`nft_popen.c
nft_popen.c: In function `nft_pclose':
nft_popen.c:317: error: `SIGTERM' undeclared (first use in this function)
nft_popen.c:317: error: (Each undeclared identifier is reported only once
nft_popen.c:317: error: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `nft_popen.o'
You should get a response. If not, post that information here.
TheWitness
It seems OK.
01/23/2006 12:03:53 PM - PHPSVR: Poller[0] ERROR: The PHP Script Server MUST be started using the full path to the file and in lower case. This is a PHP Bug!!!
D:\Programme\Cacti-NetworkMonitoring>php d:/programme/cacti-networkmonitoring/script_server.php
PHP Script Server has Started - Parent is cmd
D:/Programme/Cacti-NetworkMonitoring/scripts/ss_fping.php ss_fping usterix 10 ICMP
min:0.1800 avg:2.2050 max:4.3100 dev:1.4573 loss:0.0000
the log is anexed
attachement removed because of Post size limitation (problem can be solved in using the function lowercase in poller.php)