Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Wed Oct 01, 2014 9:20 pm

All times are UTC - 5 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 528 posts ]  Go to page 1, 2, 3, 4, 5 ... 36  Next
Author Message
 Post subject: Thold 2.x - Thresholding/Alerting module for cacti 8.6
PostPosted: Sun Feb 20, 2005 3:47 pm 
Offline

Joined: Mon Jan 24, 2005 12:46 am
Posts: 32
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:
shot2.jpg
shot2.jpg [ 105.15 KiB | Viewed 100570 times ]
thold2.1a.zip [66.15 KiB]
Downloaded 9246 times
shot1.jpg
shot1.jpg [ 90.13 KiB | Viewed 100570 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 20, 2005 4:36 pm 
Offline
Cacti User

Joined: Mon Jun 07, 2004 8:17 am
Posts: 85
howto install it on windows?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 20, 2005 8:26 pm 
Offline

Joined: Mon Nov 22, 2004 2:35 pm
Posts: 30
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 20, 2005 9:09 pm 
Offline

Joined: Mon Jan 24, 2005 12:46 am
Posts: 32
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 3323 times
Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 20, 2005 9:19 pm 
Offline

Joined: Mon Nov 22, 2004 2:35 pm
Posts: 30
Solved...

I had sendmail stopped!!!


Top
 Profile  
 
 Post subject: up/down devices
PostPosted: Mon Feb 21, 2005 3:50 am 
Offline
Cacti User

Joined: Mon Jun 07, 2004 8:17 am
Posts: 85
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 21, 2005 4:15 am 
Offline

Joined: Tue Feb 04, 2003 7:07 pm
Posts: 9
Location: Nicosia, Cyprus
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 21, 2005 7:50 am 
Offline
Cacti User

Joined: Wed Aug 18, 2004 8:26 am
Posts: 81
Location: Bloomington, IN
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?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 21, 2005 7:57 am 
Offline

Joined: Tue Feb 01, 2005 2:31 am
Posts: 32
Location: Grenoble - France
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 21, 2005 8:06 am 
Offline
Cacti User

Joined: Wed Aug 18, 2004 8:26 am
Posts: 81
Location: Bloomington, IN
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..


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 21, 2005 9:09 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
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

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 21, 2005 10:08 am 
Offline
Cacti User

Joined: Wed Aug 18, 2004 8:26 am
Posts: 81
Location: Bloomington, IN
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???


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 21, 2005 10:21 am 
Offline

Joined: Tue Feb 04, 2003 7:07 pm
Posts: 9
Location: Nicosia, Cyprus
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 21, 2005 10:26 am 
Offline

Joined: Tue Feb 04, 2003 7:07 pm
Posts: 9
Location: Nicosia, Cyprus
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.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 21, 2005 10:26 am 
Offline

Joined: Tue Feb 01, 2005 2:31 am
Posts: 32
Location: Grenoble - France
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 528 posts ]  Go to page 1, 2, 3, 4, 5 ... 36  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group