IMPORTANT: Cacti 0.8.6j Ping Issues

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

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

IMPORTANT: Cacti 0.8.6j Ping Issues

Post by TheWitness »

All,

If you are running a version of PHP less than 5.0, you should seriously consider applying the folloing patch to "/lib/ping.php". It correct's an issue with the new version of ping that was implemented for SNMP. If you are running Cactid, you will not be impacted by this change.

TheWitness
Attachments
ping.zip
(3.94 KiB) Downloaded 1184 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?
reboot
Posts: 16
Joined: Sun Mar 05, 2006 7:45 am
Location: The Netherlands

Post by reboot »

Is it possible to put this patch at the official patches page of the cacti homepage?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Sent a note to Ian as he publishes the patches.

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?
reboot
Posts: 16
Joined: Sun Mar 05, 2006 7:45 am
Location: The Netherlands

Post by reboot »

I believe it's allready there.

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

Post by TheWitness »

Right, he confirmed late last night via e-mail that he had posted my package.

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?
project_jupiter
Posts: 6
Joined: Fri Nov 17, 2006 12:46 pm

What happened to plugins in Cacti 0.8.6j???

Post by project_jupiter »

I'm using 0.8.6i and plugins are there. Tried to upgrade to 0.8.6j and plugins directive in include/config.php is missing. Added manually but plugins are still not recognized. Why? Previous upgrade went very smooth.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

When you have the plugin architecture installed, you have to be much more careful about upgrading as the default config.php does not include any references to the plugins. You need the Plugin Architecture.

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?
duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

Post by duckhead »

I upgraded to 0.8.6j, and applied the ping patch, since I'm running PHP 4. My cacti.log was littered with the error:

"WARNING: sockets support not enabled in PHP,falling back to SNMP ping"

So, I looked at the code for ping.php, and saw this block:

Code: Select all

                if (!function_exists("socket_create")) {
                        $avail_method = AVAIL_SNMP;
                        cacti_log("WARNING: sockets support not enabled in PHP,falling back to SNMP ping");
                }
So, i figured I should change my ping type to SNMP. I did that, and still got the error message. In looking at it further, I did not see any usefulness to reporting this error message if we were doing SNMP pings already. So, I changed it to this:

Code: Select all

                if ($avail_method != AVAIL_SNMP && !function_exists("socket_create")) {
                        $avail_method = AVAIL_SNMP;
                        cacti_log("WARNING: sockets support not enabled in PHP,falling back to SNMP ping");
                }
Works much more quietly now. And yeah, I know I should rebuild PHP with sockets support. It's on my list with an infinite number of other things.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Lol, I hope you get to it soon. Many other plugins will be using the sockets module as we move forward.

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?
Arka
Posts: 13
Joined: Wed Oct 26, 2005 3:48 am

Post by Arka »

duckhead wrote:

Code: Select all

                if ($avail_method != AVAIL_SNMP && !function_exists("socket_create")) {
                        $avail_method = AVAIL_SNMP;
                        cacti_log("WARNING: sockets support not enabled in PHP,falling back to SNMP ping");
                }
Works much more quietly now. And yeah, I know I should rebuild PHP with sockets support. It's on my list with an infinite number of other things.
Thanks for this btw. (and yes, I also have to rebuild my PHP) ^^
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests