My Advanced Ping v1.3 graphs generates invalid results. When I check the log file it is running the script as the following:
[root@cacti ~]# /usr/bin/php /var/www/html/scripts/ss_fping.php ss_fping 172.19.1.1
PHP Warning: Division by zero in /var/www/html/scripts/ss_fping.php on line 93
Content-type: text/html
X-Powered-By: PHP/4.3.9
<br />
<b>Warning</b>: Division by zero in <b>/var/www/html/scripts/ss_fping.php</b> on line <b>93</b><br />
min:9999.9900 avg:0.0000 max:0.0000 dev:0.0000 loss:100.4704[root@cacti ~]#
[root@cacti ~]#
The min result is an invalid number and I dont get the real value in the graphs. If I just run the ss_fping.php script it gets the real data:
[root@cacti ~]# /usr/bin/php /var/www/html/scripts/ss_fping.php 172.19.1.1
Content-type: text/html
X-Powered-By: PHP/4.3.9
min:1.4500 avg:1.6717 max:1.9400 dev:0.1533 loss:0.0000[root@cacti ~]#
[root@cacti ~]#
I tried to edit the xml template to include this:
<input_string>/usr/bin/php <path_cacti>/scripts/ss_fping.php <hostname> <attempts> <protocol> <port></input_string>
But the cacti.log gets this output:
04/26/2007 09:20:16 AM - CACTID: Poller[0] Host[178] SNMP Result: Host responded to SNMP
04/26/2007 09:20:16 AM - CACTID: Poller[0] ERROR: SS[8] PHP Script Server communications lost.
04/26/2007 09:20:16 AM - CACTID: Poller[0] Host[178] DS[1230] SS[8] WARNING: Result from SERVER not valid. Partial Result: ...
04/26/2007 09:20:16 AM - CACTID: Poller[0] Host[178] DS[1230] SS[8] SERVER: /usr/bin/php /var/www/html/scripts/ss_fping.php ss_fping 10.20.30.10420ICMP, output: U
Advanced Ping v.13 php script
Moderators: Developers, Moderators
-
- Posts: 32
- Joined: Mon Aug 07, 2006 2:32 pm
- Location: PR
- Contact:
Who is online
Users browsing this forum: No registered users and 0 guests