Advanced ping (ss_fping.php) buggy

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please test as non-root.

TheWitness
Attachments
ping.zip
(3.44 KiB) Downloaded 378 times
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
sizulku
Cacti User
Posts: 110
Joined: Mon Nov 04, 2002 9:15 am
Location: ACEH
Contact:

Post by sizulku »

I would like to inform you that the bug is still exist. This version of ping script still unable to produce the correct output. Here is my sample test:

root@localhost scripts]# ping -c 10 www.yahoo.com
PING www.yahoo.akadns.net (209.131.36.158) 56(84) bytes of data.
64 bytes from f1.www.vip.sp1.yahoo.com (209.131.36.158): icmp_seq=0 ttl=57 time=706 ms
64 bytes from f1.www.vip.sp1.yahoo.com (209.131.36.158): icmp_seq=1 ttl=57 time=715 ms
64 bytes from f1.www.vip.sp1.yahoo.com (209.131.36.158): icmp_seq=2 ttl=57 time=705 ms
64 bytes from f1.www.vip.sp1.yahoo.com (209.131.36.158): icmp_seq=3 ttl=57 time=695 ms
64 bytes from f1.www.vip.sp1.yahoo.com (209.131.36.158): icmp_seq=4 ttl=57 time=809 ms
64 bytes from f1.www.vip.sp1.yahoo.com (209.131.36.158): icmp_seq=5 ttl=57 time=703 ms
64 bytes from f1.www.vip.sp1.yahoo.com (209.131.36.158): icmp_seq=6 ttl=57 time=700 ms
64 bytes from f1.www.vip.sp1.yahoo.com (209.131.36.158): icmp_seq=7 ttl=57 time=707 ms
64 bytes from f1.www.vip.sp1.yahoo.com (209.131.36.158): icmp_seq=8 ttl=57 time=951 ms
64 bytes from f1.www.vip.sp1.yahoo.com (209.131.36.158): icmp_seq=9 ttl=57 time=702 ms

--- www.yahoo.akadns.net ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9253ms
rtt min/avg/max/mdev = 695.448/739.852/951.456/77.358 ms, pipe 2

[root@localhost scripts]# php -q ss_fping.php www.yahoo.com 10 ICMP
min:1.9700 avg:224.5800 max:348.6500 dev:112.2438 loss:10.0000
[root@localhost scripts]#

FYI, I'm using;

CentOS release 4.3 (Final)
Cacti 0.8.6h
cactid 0.8.6f-1
Advanced ping v1.3

Any help would be great. Thanks!
neeko_23
Posts: 4
Joined: Thu Dec 22, 2005 10:02 am

ping stat error

Post by neeko_23 »

I have the same errors, more over cacti see a lot more packet loss than it is but not on evrey host i poll.. it is strange..
any help would be great
Neeko..23
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The new version of Cacti fixes some things. It will be out soon.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
wolvverine-pld
Posts: 5
Joined: Wed Mar 29, 2006 3:28 am

Post by wolvverine-pld »

problem on cacti 8.7b on linux host

/usr/share/cacti/scripts/ss_fping.php o2.pl
ping: invalid option -- 'W'
usage: ping [ -i delay ] [ -c count ] [ -t timeout] host
ping: invalid option -- 'W'
usage: ping [ -i delay ] [ -c count ] [ -t timeout] host
ping: invalid option -- 'W'
usage: ping [ -i delay ] [ -c count ] [ -t timeout] host
ping: invalid option -- 'W'
usage: ping [ -i delay ] [ -c count ] [ -t timeout] host
ping: invalid option -- 'W'
usage: ping [ -i delay ] [ -c count ] [ -t timeout] host
ping: invalid option -- 'W'
usage: ping [ -i delay ] [ -c count ] [ -t timeout] host

in file:

lib/ping.php

# /usr/bin/ping
Nosuid TCP/IP ping 2.03 by <mmazur@kernel.pl>
usage: /usr/bin/ping [ -i delay ] [ -c count ] [ -t timeout] host

# locate bin/ping
/usr/bin/ping
/usr/bin/ping6
/bin/ping
/bin/ping6
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests