|
|
| Author |
Message |
adesimone
Joined: 24 Jan 2005 Posts: 32
|
Posted: Sun Feb 20, 2005 3:47 pm Post subject: Thold 2.x - Thresholding/Alerting module for cacti 8.6 |
|
|
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.
| Description: |
|
| Filesize: |
105.15 KB |
| Viewed: |
83691 Time(s) |

|
| Description: |
|
| Filesize: |
90.13 KB |
| Viewed: |
83691 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
thold2.1a.zip |
| Filesize: |
66.15 KB |
| Downloaded: |
8508 Time(s) |
|
|
| Back to top |
|
 |
rpingar Cacti User
Joined: 07 Jun 2004 Posts: 81
|
Posted: Sun Feb 20, 2005 4:36 pm Post subject: |
|
|
howto install it on windows?
thanks
|
|
| Back to top |
|
 |
starkie
Joined: 22 Nov 2004 Posts: 30
|
Posted: Sun Feb 20, 2005 8:26 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
adesimone
Joined: 24 Jan 2005 Posts: 32
|
Posted: Sun Feb 20, 2005 9:09 pm Post subject: |
|
|
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
| Description: |
|
 Download |
| Filename: |
install.zip |
| Filesize: |
1.49 KB |
| Downloaded: |
2984 Time(s) |
|
|
| Back to top |
|
 |
starkie
Joined: 22 Nov 2004 Posts: 30
|
Posted: Sun Feb 20, 2005 9:19 pm Post subject: |
|
|
Solved...
I had sendmail stopped!!!
|
|
| Back to top |
|
 |
rpingar Cacti User
Joined: 07 Jun 2004 Posts: 81
|
Posted: Mon Feb 21, 2005 3:50 am Post subject: up/down devices |
|
|
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
|
|
| Back to top |
|
 |
ranko
Joined: 04 Feb 2003 Posts: 9 Location: Nicosia, Cyprus
|
Posted: Mon Feb 21, 2005 4:15 am Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
addlema Cacti User
Joined: 18 Aug 2004 Posts: 81 Location: Bloomington, IN
|
Posted: Mon Feb 21, 2005 7:50 am Post subject: |
|
|
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?
|
|
| Back to top |
|
 |
ppollet73
Joined: 01 Feb 2005 Posts: 32 Location: Grenoble - France
|
Posted: Mon Feb 21, 2005 7:57 am Post subject: |
|
|
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
|
|
| Back to top |
|
 |
addlema Cacti User
Joined: 18 Aug 2004 Posts: 81 Location: Bloomington, IN
|
Posted: Mon Feb 21, 2005 8:06 am Post subject: |
|
|
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..
|
|
| Back to top |
|
 |
fmangeant Cacti Guru User
Joined: 19 Sep 2003 Posts: 2326 Location: Sophia-Antipolis, France
|
Posted: Mon Feb 21, 2005 9:09 am Post subject: |
|
|
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: | | 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: | | 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
|
|
| Back to top |
|
 |
addlema Cacti User
Joined: 18 Aug 2004 Posts: 81 Location: Bloomington, IN
|
Posted: Mon Feb 21, 2005 10:08 am Post subject: |
|
|
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???
|
|
| Back to top |
|
 |
ranko
Joined: 04 Feb 2003 Posts: 9 Location: Nicosia, Cyprus
|
Posted: Mon Feb 21, 2005 10:21 am Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
ranko
Joined: 04 Feb 2003 Posts: 9 Location: Nicosia, Cyprus
|
Posted: Mon Feb 21, 2005 10:26 am Post subject: |
|
|
| 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...
Last edited by ranko on Mon Feb 21, 2005 10:27 am; edited 1 time in total |
|
| Back to top |
|
 |
ppollet73
Joined: 01 Feb 2005 Posts: 32 Location: Grenoble - France
|
Posted: Mon Feb 21, 2005 10:26 am Post subject: |
|
|
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
|
|
| Back to top |
|
 |
|