Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Thresholding / Alerting Plugin - Official Q/A Thread
Goto page 1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Threshold)
Author Message
cigamit
Developer


Joined: 07 Apr 2005
Posts: 1168
Location: B/CS Texas

PostPosted: Mon May 29, 2006 5:47 pm    Post subject: Thresholding / Alerting Plugin - Official Q/A Thread Reply with quote

This is the new topic for the Threshold (Thold) Plugin, as the old topic was quite long (36 pages), and contained both the old add-on version, and the plugin version in the same thread, which was confusing.

Thold is a plugin for Cacti that will alert you once user specified "Thresholds" are breached. For instance, if you go above 95% on your drive sizes, or if your Poller takes over 290 seconds to complete. It will email you the current graph embedded into a HTML email stating what exactly happened (in the subject line), and adds a link to the devices graphs. It will also alert you once it returns to normal, and can continue to alert you if it does not resolve itself. There is even an option for baseline alerting, which will let you know if something deviates way above/below normal for that devices past.

Thresholds can be created manually, or you can auto-create thresholds for a device based on templates that you create. When using templates, you can create a template for a specified graph, and when editting a device, click the "Auto Create Thresholds" link to create thresholds for that device based off any templates you have created.

You can specify different email addresses for different thresholds, and can send out the emails via PHP's Mail function, Sendmail, or Authenicated SMTP (or Unauthenicated ofcourse). You can also specify a "Global" address to receive all alerts.

This plugin utilizes the Plugin Architecture, and it will not run without it (So install it first). No extra cron jobs are needed (it uses Cacti's poller), nor do you have to manually import the database, as it is all done for you.
------------------------
Important Links

-----
Thold add-on originately created by Aurelio DeSimone, Plugin version and all future versions / fixes courtesy of Jimmy Conner.


Last edited by cigamit on Tue Feb 03, 2009 5:54 pm; edited 2 times in total
Back to top
r_chetanjain
Cacti User


Joined: 22 Aug 2003
Posts: 83

PostPosted: Tue May 30, 2006 1:04 am    Post subject: Thold 2.x and Thold 0.2.7 Differences Reply with quote

Hi.....Gr8 Plugin...but i am confused

U have posted Thold 2.x Version of the Plugin....and there is one more Thold Plugin posted in Cactiusers.org which is 0.2.7 Version....

What is the difference....can we have a single place where we can see all the plugins available for Cacti...


Chetan
Back to top
yinleew



Joined: 01 Feb 2006
Posts: 2

PostPosted: Tue May 30, 2006 11:16 am    Post subject: run a scripts after the file system is above the threshold Reply with quote

Hi, we were using file system watcher previously and whenever the file system is over the threshold, a scripts will be run and the operator will be noticed with audio alert. Is it possible for the threshold plugin to run a scripts instead of sending an alert email message? how? thanks.
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 1168
Location: B/CS Texas

PostPosted: Tue May 30, 2006 4:54 pm    Post subject: Re: Thold 2.x and Thold 0.2.7 Differences Reply with quote

r_chetanjain wrote:
Hi.....Gr8 Plugin...but i am confused

U have posted Thold 2.x Version of the Plugin....and there is one more Thold Plugin posted in Cactiusers.org which is 0.2.7 Version....

What is the difference....can we have a single place where we can see all the plugins available for Cacti...


Chetan


Actually, I posted the Plugin version. The add-on was version 2.1a in its last release (for Cacti 0.8.6c) but I did actually change the Plugin versions's since it was not essentially the same thing anymore (actually it was a mistake on my part, as I started with 0.2.3 instead of 2.3, but I can't really undo it now). The plugin is now at v0.3.

The old thread has been locked to help avoid alot of the confusion that is surrounding this (since the old add-on isn't supported anymore by the original author). Most of the Plugins are available from my site, which is in my Sig, and there is some documentation on them in the Wiki. The others are currently in the Add-on forums here on cacti.net until Ian gets the Warehouse up and running.
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 1168
Location: B/CS Texas

PostPosted: Tue May 30, 2006 4:56 pm    Post subject: Re: run a scripts after the file system is above the thresho Reply with quote

yinleew wrote:
Hi, we were using file system watcher previously and whenever the file system is over the threshold, a scripts will be run and the operator will be noticed with audio alert. Is it possible for the threshold plugin to run a scripts instead of sending an alert email message? how? thanks.


That is definitely possible, I am also working on a more rebust notifier (SMS, Audible, etc...) but its a long way down the road.

BTW, what exactly would the scripts do? As I don't see what you could accomplish with them....
Back to top
neodynium



Joined: 06 Feb 2006
Posts: 4

PostPosted: Thu Jun 01, 2006 10:50 am    Post subject: Reply with quote

I do not understand the useness of the baseline monitoring.
Could you please put an example here ?


Does it monitor the delta ? (if a CPU takes 30% in 2 minutes alarm me ?)

Thank you
Back to top
laarocho



Joined: 05 Apr 2006
Posts: 26
Location: SJ, Puerto Rico

PostPosted: Fri Jun 02, 2006 11:05 am    Post subject: How to configure Thold Template Reply with quote

Can someone explain how to configure a Thold Template.
For example
High Threshold : 95% or 6GB or What data I will fill the blanks with?

Thanks,

And yes this is the best support forum!!!. Continue the good work!!!
Back to top
Mikeos



Joined: 07 Jun 2006
Posts: 9

PostPosted: Thu Jun 08, 2006 8:46 am    Post subject: Thold not drawing auto-create thresholds link Reply with quote

Have installed the latest version of Thold and it all looks good apart
from it is not drawing the 'auto-create thresholds' hyperlink when
I try and add a device or modify one.

Has anybody got any ideas why?
Back to top
mrh
Cacti User


Joined: 08 Mar 2005
Posts: 84

PostPosted: Thu Jun 08, 2006 9:24 am    Post subject: Reply with quote

Hi! Does anybody know how to make threshold send a graph for the "last 4h" (for example) in the email attachment instead of "last day"

When an alarm raise you will not see the change in the graph in the last day until some minutes more pass, so... that's the cause of my requirement

Thanks thanks thanks!
Back to top
Maestro_Ba



Joined: 06 Jun 2006
Posts: 35

PostPosted: Tue Jun 13, 2006 12:33 pm    Post subject: Reply with quote

Hi there.

I have "cacti-0.8.6h.fc4.i384.rpm" running for about a month.
Now I have just installed "cacti-plugin-arch 0.9" + "thold 0.3.0".

It seems to be working fine, I just wanted to know if someone knows how to setup an alarm based in the quocient of 2 variables.

I have some routers and I am monitorizing their interfaces' traffic. Of course, each interface has its maximum limit. I need to set alarms whenever an interface reaches 90% of its bandwidth.

Another example: How to set an alarm whenever Free Memory is less than 10%.

Can anyone help me? Thanks a lot!
Back to top
amay



Joined: 18 Apr 2006
Posts: 1

PostPosted: Mon Jun 19, 2006 8:55 am    Post subject: Reply with quote

Is it possible to only be alerted of thresholds during specified hours?

For example: I only want to know if an interface is over 80% utilization between 8am and 5pm. I don't care if it is using all of the bandwidth off-hours.

I was unable to find the answer to this question by searching this forum, if it is answered elsewhere, I apologize.

Thank you for your time.
Back to top
kbartoletta
Cacti User


Joined: 04 Oct 2005
Posts: 109
Location: suwanee, ga

PostPosted: Thu Jun 22, 2006 1:59 pm    Post subject: Send notifications to default alert address - still not work Reply with quote

I thought that there was a fix in the latest release to fix this functionality but I dont believe that it is working -

If I have this setting set to "force:off" - I am still getting threshold alerts sent to my email address specified in the global threshold settings. I have tried changing this setting but behavior does not appear to change -

any ideas?
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 1168
Location: B/CS Texas

PostPosted: Thu Jun 22, 2006 6:56 pm    Post subject: Re: Send notifications to default alert address - still not Reply with quote

kbartoletta wrote:
I thought that there was a fix in the latest release to fix this functionality but I dont believe that it is working -

If I have this setting set to "force:off" - I am still getting threshold alerts sent to my email address specified in the global threshold settings. I have tried changing this setting but behavior does not appear to change -

any ideas?


It was supposed to be fixed, but apparently I didn't get it quite right. It should definitely be fixed in the next version.
Back to top
Mikeos



Joined: 07 Jun 2006
Posts: 9

PostPosted: Fri Jun 23, 2006 5:54 am    Post subject: Auto create threshold hyperlink Reply with quote

Have installed Thold 0.3.0 without any problems. When I configure a device I don't see the 'auto create thresholds' hyperlink (its doesn't get painted on the screen). Any ideas why ?

Running Cacti 0.8.6h

I checked setup.php for the plugin and can see the call to:-

function thold_graphs_new () {
global $_REQUEST, $config;
print '<span style="color: #c16921;">*</span><a href="' . $config['url_path'] . 'plugins/thold/thold.php?action=autocreate&hostid=' . $_REQUEST["host_id"] . '">Auto-create thresholds</a><br>';
}

Any ideas why this is not getting displayed....

Many thanks

-Mike
Back to top
kbartoletta
Cacti User


Joined: 04 Oct 2005
Posts: 109
Location: suwanee, ga

PostPosted: Fri Jun 23, 2006 9:20 am    Post subject: Reply with quote

Quote:
I thought that there was a fix in the latest release to fix this functionality but I dont believe that it is working -

If I have this setting set to "force:off" - I am still getting threshold alerts sent to my email address specified in the global threshold settings. I have tried changing this setting but behavior does not appear to change -

any ideas?


Actually, I just upgraded my cacti version to "h" and the thold fix for this seems to work. I was still on version "g" when it was not working.

Thanks
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Threshold) All times are GMT - 5 Hours
Goto page 1, 2, 3, 4, 5, 6  Next
Page 1 of 6

 



Powered by phpBB © 2001, 2005 phpBB Group