ping.pl and ping.php scripts

Clement Bruguera <[email protected]>
Newsgroups gmane.network.cacti.user
Message-ID <CAG=R+Exa_=8Pcmtcuv6A-hiwtTjXXg6C7wwvHxwSV8y6P5awsA@mail.gmail.com>
Hi,

I'm graphing some high latency devices (satellite modems) with the Data
Template "Unix - Ping Host" using the predefined Data Input Method which is
configured to get data from the script ping.pl.
The problem is that very ofter, the hosts appear down because the delay is
to short or because there is only one try.
In the devices configuration page, I have put "Ping Timeout Value" to 5000
and "Ping Retry Count" to 3.
I'm wondering what are these parameters used for ? They are not passed as
parameter to ping.pl that anyway doesn't take any parameter from STDIN.
Are they only used by ping.php to display the current/avg delay of host.php
in "Management -> Devices" ?
Why not use the php script ping.php to feed "Unix - Ping Host" graphs ?

I modified the ping.pl script to best match with our needs so I can pass as
argument a maxdelay, a number of packets to be sent and a number or retry
to apply to the system ping command.
As the ping command used in ping.pl is not portable (not usable in solaris
for exemple because of the -c parameter), I modified ping.pl to take in
account the operating system and generate a compatible system ping command.
In case the number of packets to be sent is more than 1, the value returned
by the script is the average of the received replies.

Is someone interested in this modified script ?


Best regards,

Clément BRUGUERA
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
cacti-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cacti-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.