100% loss with Advanced Ping 1.3

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:

Re: 100% loss with Advanced Ping 1.3

Post by TheWitness »

Fix your permission issues. See the second link in my signature.

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?
Mdtdiop
Posts: 10
Joined: Tue Oct 05, 2010 6:00 pm

Re: 100% loss with Advanced Ping 1.3

Post by Mdtdiop »

Thanks u the witness. It's work now. But i don't know why it work. i just reinstall cacti.
User avatar
Selenius
Posts: 27
Joined: Mon Jun 29, 2009 5:21 am

Re: 100% loss with Advanced Ping 1.3

Post by Selenius »

Guys from our NOC team fond the solution of the problem.

1. File /usr/local/share/cacti/lib/ping.php.
Before:

Code: Select all

else if (substr_count(strtolower(PHP_OS), "freebsd")) {
                $result = shell_exec("ping -t " . ceil($this->timeout/1000) . " -c " . $this->retries . " " . $this->host["hostname"]);
After:

Code: Select all

else if (substr_count(strtolower(PHP_OS), "freebsd")) {
                $result = shell_exec("/sbin/ping -t " . ceil($this->timeout/1000) . " -c " . $this->retries . " " . $this->host["hostname"]);
2. Input type - Script/Command.
3. Input string - <path_cacti>/scripts/ss_fping.php <hostname> <attempts> <protocol> <port>.

Now, it works correctly!
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests