Thresholding / Alerting Plugin - Official Q/A Thread

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
akaevgen
Posts: 1
Joined: Tue Aug 23, 2011 3:00 am

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by akaevgen »

Hi. Help me anyone!
I try to use baseline threshold and THOLD plugin move only to warning state, not alert.
In my test the threshold in permanent warning state. What i must do? Thanks.
Skyla
Posts: 2
Joined: Wed Jul 13, 2011 3:34 pm

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by Skyla »

noname wrote:
Skyla wrote:In investigating, it is pulling the thresholdname from the data_template_data table and using the cache name which is the data source name and not pulling the threshold name from the thold_data. This makes it hard to identify which threshold is sending the notification without looking at the threshold list to see which one has been triggered.

I have found that if I go to the data source option and add the extra information into that name it reports as I expect but it would be more convenient if the thresholdname parameter actually used the name from the threshold setup page.
As a workaround, try to modify 'plugins/thold/thold_functions.php'.
(I'm using thold-0.4.4-41, but not fully tested)

At line 527:
$thold_alert_text = str_replace('<THRESHOLDNAME>', $desc, $thold_alert_text);
to
$thold_alert_text = str_replace('<THRESHOLDNAME>', $item['name'], $thold_alert_text);
At line 561, 592, 631, 649, 694, 622:
$subject = $desc . ($thold_show_datasource ? " [$name]" : '') . ...
to
$subject = $item['name'] . ...
* If you want to know particular datasource name which was triggered, leave "($thold_show_datasource ...)".

Thanks worked out great
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by noname »

akaevgen wrote: I try to use baseline threshold and THOLD plugin move only to warning state, not alert.
In my test the threshold in permanent warning state. What i must do? Thanks.
It seems that baseline monitoring doesn't change to Alarm state.

Probably it shows one of them:
- Warning = Breached and Triggered
- Notice = Breached, but not yet reached "Trigger Count"
- Ok = Normal
- and Disabled
Gatorz
Posts: 9
Joined: Wed Aug 17, 2011 10:50 pm

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by Gatorz »

Hi

im new in Cacti. i have a simple question

if i create 1 threshold template can i use to many devices / group of devices ?

let say i want to create Bandwith utilization of 90 % . can i apply the template to 10 or more interface / link ?

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

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by TheWitness »

noname wrote:
akaevgen wrote: I try to use baseline threshold and THOLD plugin move only to warning state, not alert.
In my test the threshold in permanent warning state. What i must do? Thanks.
It seems that baseline monitoring doesn't change to Alarm state.

Probably it shows one of them:
- Warning = Breached and Triggered
- Notice = Breached, but not yet reached "Trigger Count"
- Ok = Normal
- and Disabled
'Warning' is actually 'Baseline Alarm'. I've corrected in SVN. We will be releasing 0.4.4 officially shortly.

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?
pier62350
Posts: 15
Joined: Thu Aug 02, 2012 9:12 am

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by pier62350 »

Hi (sorry for my bad english :oops: ),

I've just installing Thold plugin for cacti and I was having a problem:

When the thold plugin is installed : settings.php show me "Fatal error: Call to undefined function define_syslog_variables() in [...]/cacti/plugins/thold/includes/settings.php on line 132"

the function "define_syslog_variables" seems to be obsolete (and deleted in php 5.4) see: http://www.php.net/manual/en/function.d ... iables.php

I don't know if you can update the plugin in order to fix the problem? (I've just comment the line and it seems to work perfectly)
blugger
Cacti User
Posts: 50
Joined: Wed May 07, 2008 10:23 am

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by blugger »

Hi together,

first - great plugin.

For me nearly everything works fine. I have done many tests. Finally I found one problem but I do not see a solution.

I have created different "Threshold Templates", e.g.

+ Cisco Router - 5 Minute CPU [5min_cpu]
+ Cisco Router - SAA [lossSD]

The problem is that when I try to "Apply Thresholds" under the "devices" section, it works with "Cisco Router - 5 Minute CPU [5min_cpu]", but it does not work with "Cisco Router - SAA [lossSD]". I do not get an error message nor do I see an indicatioin why it does not work.

Strange is that it is possible to create the "Cisco Router - SAA [lossSD] threshold" manually using "Threshold => Add". It is also listed afterwards when I go to the Threshold "Top Tab". Strange is that the newly created threshold shows a 0 ID when checking the graph icon: "https://x.x.x.x/CACTI/graph.php?local_graph_id=0&rra_id=all".

This only happens with the SAA:
http://forums.cacti.net/viewtopic.php?f=12&t=4136

Would be great if somebody has got an idea.

BR
Benjamin
blugger
Cacti User
Posts: 50
Joined: Wed May 07, 2008 10:23 am

Re:

Post by blugger »

dennis00 wrote:Installed... yet... a question... it says: "Data Source Item [traffic_in] - Current value: [38128.5867]".

What does this actually mean? I want to get a mail when my switch (port 24) is doing 30mbit+ for more than 2 hours...

Yet I have no idea how to set up the treshhold and what "38128.5867" means.
================

Hi!

I had the same problem and asked myself what number is used. But after checking the XML i remembered that traffic is gathered in Bytes and not Bits.

This means:

The interface statistics are done in Bytes. This means that you have to translate into Bits.

30 Mbps = 30.000.000 Bps

30.000.000 / 8 = 3750000

So 3750000 is the value you have to enter into the tool as high threshold.

Hope, this helped.

BR
Benjamin
blugger
Cacti User
Posts: 50
Joined: Wed May 07, 2008 10:23 am

Thold how to avoid trigger on wrong numbers?

Post by blugger »

Hi together,

I have the following problem.

For some reason Cisco ASAs report the wrong CPU value sometimes.

Example:

DEVICENAME DEVICENAME - 5 Minute CPU [asa5min_cpu] 2013-03-17 05:17:03 80 4294925 Alarm High/Low ALERT: DEVICENAME - 5 Minute CPU [asa5min_cpu] [asa5min_cpu] went above threshold of 80 with 4294925

When taking a look at the cacti graphs aftwarwards a gap is shown because cacti only graphs values up to "100".

I assume that "Threshold" gets the data before it goes to the graphs.

Do you have an idea how this problem could be solved?

Maybe it is possible to ignore values above 100 somehow?

BR
Benjamin
vaiper79
Posts: 17
Joined: Wed Aug 21, 2013 1:25 am

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by vaiper79 »

blugger wrote:Hi together,

first - great plugin.

For me nearly everything works fine. I have done many tests. Finally I found one problem but I do not see a solution.

I have created different "Threshold Templates", e.g.

+ Cisco Router - 5 Minute CPU [5min_cpu]
+ Cisco Router - SAA [lossSD]

The problem is that when I try to "Apply Thresholds" under the "devices" section, it works with "Cisco Router - 5 Minute CPU [5min_cpu]", but it does not work with "Cisco Router - SAA [lossSD]". I do not get an error message nor do I see an indicatioin why it does not work.

Strange is that it is possible to create the "Cisco Router - SAA [lossSD] threshold" manually using "Threshold => Add". It is also listed afterwards when I go to the Threshold "Top Tab". Strange is that the newly created threshold shows a 0 ID when checking the graph icon: "https://x.x.x.x/CACTI/graph.php?local_graph_id=0&rra_id=all".

This only happens with the SAA:
http://forums.cacti.net/viewtopic.php?f=12&t=4136

Would be great if somebody has got an idea.

BR
Benjamin
Hi, did you ever figure this out? I am having the same exact situation here.

/Ole
jonheese
Posts: 1
Joined: Fri Jan 10, 2014 12:44 pm

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by jonheese »

New Cacti user here, trying to install this Thold plugin, but finding all of the cactiusers.org links redirecting to blog.cactiusers.org, which doesn't seem to have any of the info I need...

I just need the instructions for installing the Plugin Architecture, the Settings Plugin, and the Thold plugin, but all of this data was apparently only stored in the Cactiusers Wiki, which apparently no longer exists! Help!

EDIT: Okay, I was able to get my hands on the documentation through the Wayback Machine, but I've hit a brick wall on the plugin architecture installation. I am going to try to update to a backport of 0.8.8a (I'm running Ubuntu Precise 12.04) and I'll post to the Plugin Architecture forum if I need further help. Sorry if this was the wrong place for this-- you can return to your regularly scheduled program now. Thanks!

Regards,
Jon Heese
cesarje
Posts: 3
Joined: Wed Apr 23, 2014 7:57 pm

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by cesarje »

im trying to download the plugin but the link is broken is there any other way to get these files? :cry:
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by cigamit »

cesarje wrote:im trying to download the plugin but the link is broken is there any other way to get these files? :cry:
What link? The official page seems to work just fine.
http://docs.cacti.net/plugin:thold
cesarje
Posts: 3
Joined: Wed Apr 23, 2014 7:57 pm

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by cesarje »

cigamit wrote:
cesarje wrote:im trying to download the plugin but the link is broken is there any other way to get these files? :cry:
What link? The official page seems to work just fine.
http://docs.cacti.net/plugin:thold
this one: http://download.cactiusers.org/downloads/thold.tar.gz,
but anyway, already got this thold working :D, now im stucked with my syslogs, im new in this world of linux so im learning, but thanks for your response
kjstech
Cacti User
Posts: 97
Joined: Thu Feb 28, 2013 2:57 pm

Re: Thresholding / Alerting Plugin - Official Q/A Thread

Post by kjstech »

Does this not work with Cacti 0.8.7e?
Thats what I have, plus Settings 0.71 and thold 0.5.

I want to create a thold for some ports for our isp's if they go maxed out to detect ddos attempts.
However when I fill out the information and click save, it says record updated and then all the values disappear. Then if I click threshholds on the left side, it shows No rows found / No Thresholds. So its not taking.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests