Plugin Thold and Monitor-no Threshold Breached functionality

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
canislupus
Posts: 8
Joined: Tue Jun 30, 2009 2:27 am
Location: Germany - Frankfurt

Plugin Thold and Monitor-no Threshold Breached functionality

Post by canislupus »

Hi,
After I have updated my Cacti version and plugins to the latest release, I have an issue with the “Threshold Breached” status/functionality. The status will be not shown in the Monitor plugin. Also the legend of the Monitor plugin shows only the 3 default icons (Normal, Recovering and Down). The “Threshold Breached” icon is missing. Any ideas how to fix this issue?


With my old version (before upgraded to 0.8.7g) the Threshold Breached functionality worked fine!

Upgrade information status:
- Cacti from 0.8.7e to 0.8.7g
- Plugin Architecure 2.4 to 2.8
- Settings 0.6 to 0.7
- Monitor 0.9 to 1.2
- Thold 0.4.1 to 0.4.2
Attachments
Screenshot of current Legend
Screenshot of current Legend
monitor_legend.jpg (7.59 KiB) Viewed 6281 times
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

In monitor.php instead of line

if (in_array('thold',$plugins)) {

change to

if (true) {

and instead of line

$thold = (in_array('thold',$plugins) ? true : false);

change to

$thold = true;
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you log this bug here http://bugs.cacti.net?

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?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

TheWitness wrote:Can you log this bug here http://bugs.cacti.net?

TheWitness
Done - 0001863
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Plugin Thold and Monitor-no Threshold Breached functiona

Post by cigamit »

Actually, the problem is that monitor is still checking the "old way" of determining if a plugin was loaded, and not using the new API calls. I will add a fix for this.
canislupus
Posts: 8
Joined: Tue Jun 30, 2009 2:27 am
Location: Germany - Frankfurt

Re: Plugin Thold and Monitor-no Threshold Breached functiona

Post by canislupus »

Hi guys,

Thank you very much for your support. Today I have implemented the described solution from mcutting and it works for me. Special thanks to mcutting.
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Re: Plugin Thold and Monitor-no Threshold Breached functiona

Post by mcutting »

No problem - glad it works.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

Re: Plugin Thold and Monitor-no Threshold Breached functiona

Post by Rno »

How is it possible that I'm getting this same problem ?

nedi 0.8.8h
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Rrdclean 0.41
Thold 0.5
On centos
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest