Advanced Ping Template for Cacti 0.8.6f

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

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

Post by TheWitness »

A new version of the Advanced Ping Template has been released. Please refer to the post below for additional information.

TheWitness

http://forums.cacti.net/viewtopic.php?t=10049
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?
leskent
Posts: 4
Joined: Thu Jan 19, 2006 12:13 pm

Workaround for problem with 100% loss

Post by leskent »

In doing troubleshooting on the 100% loss problem, I discovered the problem.

With adding various debugging, I was finding something strange with the passing of arguments to the ss_fping function in the file ss_fping.php. The hostname was correct, but the ping_sweeps was actually the ping_type argument. I therefore modified the line:

function ss_fping($hostname, $ping_sweeps=6, $ping_type="ICMP", $port=80) {

to be:

function ss_fping($hostname, $filler, $ping_sweeps=6, $ping_type="ICMP", $port=80) {

By adding the filler argument, the rest of the arguments were fine.

All is working great now. I'm not a PHP expert (or even a novice), so I have no idea what the problem is.

I'm running with the following configuration:
- Windows 2003
- PHP Version => 5.1.2
- The Cacti version 1.2.12 of rddtool using cygwin
leskent
Posts: 4
Joined: Thu Jan 19, 2006 12:13 pm

Mistake on solution for ficx for 100% loss problem.

Post by leskent »

Actually I retract this fix above by adding the $filler. Turns out I had other debugging stuff still in the file that was overriding these settings. When I cleaned them out it broke again.

Well my fix was to just hard code the values for $ping_sweeps and $ping_type and that was what fixed it for me.
$ping_sweeps=10;
$ping_type="ICMP";

So maybe a PHP expert can figure out the problem better than I can?

Thanks,
Les
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests