Thold 2.x - Thresholding/Alerting module for cacti 8.6

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Locked
adesimone
Posts: 32
Joined: Mon Jan 24, 2005 12:46 am
Contact:

Thold 2.x - Thresholding/Alerting module for cacti 8.6

Post by adesimone »

Moderators Note
This topic has been locked as it was growing fairly large. This version of Threshold is also currently unsupported or updated for the newer versions of Cacti, look for the new version here.
http://forums.cacti.net/viewtopic.php?t=13829

----------------------------------------------

This is the new version of THold -

I has most of the features that have been requested & more (thanks to the contributions of Ranko)

This version supports any kind of RRD including counter & gauge. It should be platform independent, but has not been tested.

This version is not back-ward compatible with previous versions.

Feature summary:
- static threshold alerting
- host up/down alerting
- alerts via email/syslog

New features:
- baseline/dynamic threshold alerting
- high/low thresholding
- per-thold vs. global settings for alerting, baselineing, and others
- re-alerting cycles
- weekend alerting/polling exemption
- per-device auto-threshold building
& alot more

Any feedback is welcome.
Attachments
shot1.jpg
shot1.jpg (90.13 KiB) Viewed 113002 times
thold2.1a.zip
(66.15 KiB) Downloaded 9535 times
shot2.jpg
shot2.jpg (105.15 KiB) Viewed 113002 times
rpingar
Cacti User
Posts: 86
Joined: Mon Jun 07, 2004 8:17 am

Post by rpingar »

howto install it on windows?

thanks
starkie
Posts: 30
Joined: Mon Nov 22, 2004 2:35 pm

Post by starkie »

First of all guys This great!!!. Thanks for creating this.

One question though. How do you make it send email?? Can you point it to a mail server??

Thanks

Starkie
adesimone
Posts: 32
Joined: Mon Jan 24, 2005 12:46 am
Contact:

Post by adesimone »

rpingar: try this install batch file - orgininally posted by benhanson -

also, see this link for email options for both windows & unix -

http://www.php.net/manual/en/ref.mail.php


starkie: php uses your system's default mailsystem (i.e. sendmail for *nix) - unless you change the php options (see the link above) - here you can specify a mail server. Otherwise, as long as sendmail is functioning, all you need to do is specify an email address under settings - alerts/thold
Attachments
install.zip
(1.49 KiB) Downloaded 3507 times
starkie
Posts: 30
Joined: Mon Nov 22, 2004 2:35 pm

Post by starkie »

Solved...

I had sendmail stopped!!!
rpingar
Cacti User
Posts: 86
Joined: Mon Jun 07, 2004 8:17 am

up/down devices

Post by rpingar »

is the up/down alerting activated by default on all deives?

if yes how to deactivate it on some devies?

if now how to activate it?

thanks
ranko
Posts: 9
Joined: Tue Feb 04, 2003 7:07 pm
Location: Nicosia, Cyprus

Post by ranko »

rpingar: Currently, if "Dead hosts notifications" are enabled, then alerting is enabled for ALL _enabled_ devices. Currently, there is no way to disable/enable alerts per host.

However if you anticipate that the host will be down for an extended period of time, you should "disable" that host all together. This will also suspend the alerts.
addlema
Cacti User
Posts: 81
Joined: Wed Aug 18, 2004 8:26 am
Location: Bloomington, IN
Contact:

Post by addlema »

Holy Crap! This is awesome.. My manager asked me to start writing something like this.. You just saved us a good deal of dev time!!!!

THANK YOU!

Quick Question: Can I turn on baselining for every graph? Also can you set multiple graphs quickly?? Is this possible?

I'd like to set every CPU graph the same in one quick click?
ppollet73
Posts: 32
Joined: Tue Feb 01, 2005 2:31 am
Location: Grenoble - France

Post by ppollet73 »

Hello,
I have just installer the script, and the error is:
Cannot redeclare rrd_last() in /var/www/html/cacti/lib/thold-functions.php on line 19

any idea ?

Thankls

Pipol
addlema
Cacti User
Posts: 81
Joined: Wed Aug 18, 2004 8:26 am
Location: Bloomington, IN
Contact:

Post by addlema »

Also It doesnt seem to be running. I added the new cron.. And the cacti poller shoots off but the last poll date the thold got was like 8 hours ago it says and it wasnt even installed then...

Im running 8.6b.. do i need 8.6c?

EDIT: My thold.log is empty as well and no error messages in messages after a cron run. -- NEVERMIND This.. uprading to 8.6c fixed..
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi Aurelio

could you please modify functions.php so that the device name is included in the mail ? By default the mail subject is

Code: Select all

Host[16]: 192.168.1.2 ERROR: HOST EVENT: Host is DOWN Message: Host did not respond to SNMP
and I'd like it to be

Code: Select all

hermes: 192.168.1.2 ERROR: HOST EVENT: Host is DOWN Message: Host did not respond to SNMP
Thanks in advance.

Regards,

Frédéric
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
addlema
Cacti User
Posts: 81
Joined: Wed Aug 18, 2004 8:26 am
Location: Bloomington, IN
Contact:

Post by addlema »

Okay.. So now everything is working except:

Everytime It tries to send email I get:
sendmail: RCPT TO:<addlema@inidana.edu> (550 5.7.1 <addlema@inidana.edu>... Relaying denied)


But i can send email just fine from everywhere else including other PHP Scripts...

Help???
ranko
Posts: 9
Joined: Tue Feb 04, 2003 7:07 pm
Location: Nicosia, Cyprus

Post by ranko »

fmangeant: Whatever you specify under "Hostname" in the device configuration is what is going to be displayed in the subject of the message. In your case you have specified an IP address in the hostname field and this is what you've got.

ppollet73: I cannot reproduce the problem. On what page do you get that error? What version of cacti do you use?

addlema:
Quick answer: Not automatically for all but "semi-automatically" per host :). Under "New Graphs" -> "Auto-create thresholds" will take all data sources for the host and will define baseline thresholds according to your preferences set under "Settings->Alerting/THold"

Note though that CPU, speciffically for the ucd/net snmp hosts is a difficult beast. CPU utilization values are split across multiple data sources, namely cpu_system, cpu_user and cpu_nice. Currently there is no way to correlate multiple data sources. This is something that is in a to-do list.
ranko
Posts: 9
Joined: Tue Feb 04, 2003 7:07 pm
Location: Nicosia, Cyprus

Post by ranko »

addlema wrote:Okay.. So now everything is working except:

Everytime It tries to send email I get:
sendmail: RCPT TO:<addlema@inidana.edu> (550 5.7.1 <addlema@inidana.edu>... Relaying denied)


But i can send email just fine from everywhere else including other PHP Scripts...

Help???
Aparently inidana.edu is not a valid domain... It may have something to do with it... :wink:
Last edited by ranko on Mon Feb 21, 2005 10:27 am, edited 1 time in total.
ppollet73
Posts: 32
Joined: Tue Feb 01, 2005 2:31 am
Location: Grenoble - France

Post by ppollet73 »

I use cacti 0.8.6c on MDK 10.1
as soon as I try to create a threshold (auto-threshold or by clicking a template), i got this error.

Regards

Pipol
Locked

Who is online

Users browsing this forum: No registered users and 1 guest