Hi all,
I have still problems with this template.
Versions:
Code: Select all
ii cacti 0.8.6h-3
ii cacti-cactid 0.8.6g-2+b1
ii rrdtool 1.2.11-0.5
ii php-net-socket 1.0.6-2
ii php4 v 4.4.2-1
ii php4-common 4.4.2-1+b1
ii php4-mysql 4.4.2-1+b1
ii php4-snmp 4.4.2-1+b1
ii php5-common 5.1.2-1+b1
The OS is debian testing (etch).
I have also installed the last versions of ping.php, ss_fping.php and the xml template (v 1.3).
In manual mode all is ok:
Code: Select all
gauss:/usr/share/cacti/site# php script_server.php
PHP Script Server has Started - Parent is cmd
/usr/share/cacti/site/scripts/ss_fping.php ss_fping 80.48.53.32 20
min:0.4700 avg:0.5365 max:0.9800 dev:0.1216 loss:0.0000
/usr/share/cacti/site/scripts/ss_fping.php ss_fping www.google.es 20
min:25.3100 avg:25.5655 max:25.9400 dev:0.1961 loss:0.0000
/usr/share/cacti/site/scripts/ss_fping.php ss_fping 80.48.53.32 20
min:0.4500 avg:0.5690 max:0.9800 dev:0.1656 loss:0.0000
quit
PHP Script Server Shutdown request received, exiting
And the poller is cmd.php.
But, the graph is not painted (always NaN) and the return of the cacti.log is:
Code: Select all
05/11/2006 08:44:02 AM - CMDPHP: Poller[0] Host[4] DS[141] WARNING: Result from SERVER not valid. Partial Result:
05/11/2006 08:44:02 AM - CMDPHP: Poller[0] Host[4] DS[141] SERVER: /usr/share/cacti/site/scripts/ss_fping.php ss_fping 80.48.53.32 20 ICMP, output: U
05/11/2006 08:44:03 AM - CMDPHP: Poller[0] Host[9] DS[142] WARNING: Result from SERVER not valid. Partial Result:
05/11/2006 08:44:03 AM - CMDPHP: Poller[0] Host[9] DS[142] SERVER: /usr/share/cacti/site/scripts/ss_fping.php ss_fping www.google.es 20 ICMP, output: U
Olny when I make Advanced Pings to TCP 80 is ok:
Code: Select all
05/11/2006 08:50:03 AM - CMDPHP: Poller[0] Host[9] DS[142] SERVER: /usr/share/cacti/site/scripts/ss_fping.php ss_fping www.google.es 20 ICMP, output: U
05/11/2006 08:50:03 AM - CMDPHP: Poller[0] Host[10] DS[143] SERVER: /usr/share/cacti/site/scripts/ss_fping.php ss_fping www.google.com 20 TCP 80, output: min:0.5200 avg:0.8650 max:1.4500 dev:0.3385 loss:0.0000
But I need to do ICMP pings.
I've change the user to the poller, but nothing solved:
Code: Select all
gauss:/usr/share/cacti/site# cat /etc/cron.d/cacti
MAILTO=root
*/1 * * * * root /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
Only works a litle bit when I change the poller from cmd.php to cactid, but if I do that, the perl scripts for localhost doesn't work:
Code: Select all
gauss:/usr/share/cacti/site# php poller.php
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/linux_memory.pl MemFree:'
CACTID: Host[1] DS[3] WARNING: Result from SCRIPT not valid. Partial Result: ...
I've said a litle bit, because the ICMP pings to the router (the IP), still doesn't work:
Code: Select all
05/11/2006 08:59:02 AM - CACTID: Poller[0] Host[4] DS[141] SS[0] SERVER: /usr/share/cacti/site/scripts/ss_fping.php ss_fping 80.48.53.32 20 ICMP, output: U
05/11/2006 08:59:03 AM - CACTID: Poller[0] Host[9] DS[142] SS[0] SERVER: /usr/share/cacti/site/scripts/ss_fping.php ss_fping www.google.es 20 ICMP, output: min:0.5200 avg:0.7065 max:2.2000 dev:0.3622 loss:0.0000
05/11/2006 08:59:03 AM - CACTID: Poller[0] Host[10] DS[143] SS[0] SERVER: /usr/share/cacti/site/scripts/ss_fping.php ss_fping www.google.com 20 TCP 80, output: min:25.3900 avg:25.7840 max:26.2300 dev:0.2357 loss:0.0000
Any idea to fix one thing or the other, in cmd.php or in cactid, and achive the ICMP pings to 80.48.53.32?
Sorry for the extension, but I am desperate
...