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.
[www@minbar /usr/home/selen]$ php /usr/local/share/cacti/scripts/ss_fping.php ss_fping a9424-srv-1 20 ICMP
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/pcre.so' - Cannot open "/usr/local/lib/php/20090626/pcre.so" in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/spl.so' - Cannot open "/usr/local/lib/php/20090626/spl.so" in Unknown on line 0
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'snmp' already loaded in Unknown on line 0
PHP Warning: Module 'xml' already loaded in Unknown on line 0
loss:100.00
[www@minbar /usr/home/selen]$ nslookup a9424-srv-1
Server: 10.10.247.30
Address: 10.10.247.30#53
Name: a9424-srv-1
Address: 10.100.3.1
[www@minbar /usr/home/selen]$ php /usr/local/share/cacti/scripts/ss_fping.php ss_fping 10.100.3.1 20 ICMP
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/pcre.so' - Cannot open "/usr/local/lib/php/20090626/pcre.so" in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/spl.so' - Cannot open "/usr/local/lib/php/20090626/spl.so" in Unknown on line 0
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'snmp' already loaded in Unknown on line 0
PHP Warning: Module 'xml' already loaded in Unknown on line 0
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Warning: Division by zero in /usr/local/share/cacti/scripts/ss_fping.php on line 93
min:9999.9900 avg:0.0000 max:0.0000 dev:0.0000 loss:108.9109
[www@minbar /usr/home/selen]$ ping a9424-srv-1
PING a9424-srv-1.skolkovo.rutube.ru (10.100.3.1): 56 data bytes
64 bytes from 10.100.3.1: icmp_seq=0 ttl=124 time=3.315 ms
64 bytes from 10.100.3.1: icmp_seq=1 ttl=124 time=3.364 ms
64 bytes from 10.100.3.1: icmp_seq=2 ttl=124 time=141.880 ms
64 bytes from 10.100.3.1: icmp_seq=3 ttl=124 time=3.326 ms
^C
--- a9424-srv-1 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 3.315/37.971/141.880/59.992 ms
Thanks in advance!
Last edited by Selenius on Tue Sep 14, 2010 4:55 am, edited 1 time in total.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/pcre.so' - Cannot open "/usr/local/lib/php/20090626/pcre.so" in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/spl.so' - Cannot open "/usr/local/lib/php/20090626/spl.so" in Unknown on line 0
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'snmp' already loaded in Unknown on line 0
PHP Warning: Module 'xml' already loaded in Unknown on line 0
True understanding begins only when we realize how little we truly understand...
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/pcre.so' - Cannot open "/usr/local/lib/php/20090626/pcre.so" in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/spl.so' - Cannot open "/usr/local/lib/php/20090626/spl.so" in Unknown on line 0
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'snmp' already loaded in Unknown on line 0
PHP Warning: Module 'xml' already loaded in Unknown on line 0
[www@minbar /usr/home/selen]$ php /usr/local/share/cacti/scripts/ss_fping.php ss_fping 10.100.3.1 20 ICMP
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Warning: Division by zero in /usr/local/share/cacti/scripts/ss_fping.php on line 93
min:9999.9900 avg:0.0000 max:0.0000 dev:0.0000 loss:108.9109
[www@minbar /usr/home/selen]$ php /usr/local/share/cacti/scripts/ss_fping.php ss_fping a9424-srv-1 20 ICMP
loss:100.00
[www@minbar /usr/local/share/cacti/scripts]$ php ss_fping.php ss_fping 10.100.3.1 20 ICMP
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Notice: Undefined variable: method in /usr/local/share/cacti/scripts/ss_fping.php on line 56
PHP Warning: Division by zero in /usr/local/share/cacti/scripts/ss_fping.php on line 93
min:9999.9900 avg:0.0000 max:0.0000 dev:0.0000 loss:108.9109
Run the script server in debug mode and see what's going on with the host. Also, it could be that since you are using ICMP that the new detection logic for the ping command is broken in lib/ping.php. Based upon your OS, it will attempt to properly detect your OS' ping syntax. It may be getting it wrong.
However, first test using the Script Server debug method outlined in the documentation and post your results.
TheWitness
True understanding begins only when we realize how little we truly understand...
TheWitness wrote:Run the script server in debug mode and see what's going on with the host. Also, it could be that since you are using ICMP that the new detection logic for the ping command is broken in lib/ping.php. Based upon your OS, it will attempt to properly detect your OS' ping syntax. It may be getting it wrong.
However, first test using the Script Server debug method outlined in the documentation and post your results.
That is not correct. When not calling from the script server, you have to remove the function name. Here is the correct 'I'm calling it from the CLI syntax for that same call.
That is not correct. When not calling from the script server, you have to remove the function name. Here is the correct 'I'm calling it from the CLI syntax for that same call.