THold 2.0 beta - Threshold monitoring plugin for cacti 8.6c

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Matt_B
Posts: 6
Joined: Tue Feb 08, 2005 1:22 pm

Post by Matt_B »

mdw162: Sorry I do not remember the exact error. I us VI and I know I had an error somewhere near '$cactiroot/rra/*_$rra.rrd MAX". I think it was something about the *...

llistthold.php
find:

Code: Select all

Email address(es) to send alerts to: (use commas to for multiple addresses) <br> <input type='text' name='email' size='50' maxlength='50' value='";
and change to:

Code: Select all

Email address(es) to send alerts to: (use commas to for multiple addresses) <br> <input type='text' name='email' size='50' maxlength='100' value='";
Pretty simple and everythign seems to still work. Dont forget you have to change the size of the field in the database:

Code: Select all

ALTER TABLE `tholdset` CHANGE `emailadd` `emailadd` VARCHAR( 100 ) ;
Hope this helps :)

-Matt
www.mattsshack.com
raderjm
Posts: 3
Joined: Thu Feb 10, 2005 2:51 pm
Location: SC

Great Work!

Post by raderjm »

Any chance that this will soon be able to trigger alarms based on counter-based graphs for bandwidth monitoring etc? So far this looks great! I was quite pleased to see that someone has developed a notification plugin for Cacti. Great Work!
Wasaaaaabi!
adesimone
Posts: 32
Joined: Mon Jan 24, 2005 12:46 am
Contact:

Post by adesimone »

thanks for the comments/input again

I belive the counter would work execept where there are multiple datasources in one rrd file; this is the next thing I am trying to tackle.

NITRO: I forgot to fix the include/config.php bug - mdw162 had pointed that out earlier. I will include this in the next update along with a larger email field.

I am planning on putting in a rising/falling threshold option as suggested by a few people already.

Ranko also has some very good ideas. Auto-Baslineing is definately on the plate, but not easy to accomplish. If anyone can help with this, that would be much appreciated. Exception periods is a great idea - backups, etc would send off alot of alarms.

I would also like to integrate this with the 'user manager' within cacti; this would allow building alert groups, etc
ranko
Posts: 9
Joined: Tue Feb 04, 2003 7:07 pm
Location: Nicosia, Cyprus

Post by ranko »

I will start developing some library functions that will help with baseline monitoring.

I will be developing this logic in a new file: lib/thold.php

I've also sent you a modified verion of check-thold.php for your review that should resolve cross platform issues.
benhanson
Posts: 43
Joined: Tue Feb 08, 2005 8:59 pm

Ranko, I'll test your code on win2k if your willing

Post by benhanson »

I'm in the middle of a rebuild anyway

benhanson at borough.kenai.ak.us
ranko
Posts: 9
Joined: Tue Feb 04, 2003 7:07 pm
Location: Nicosia, Cyprus

Post by ranko »

benhanson: Here is the file.

Note for the mail notification to work under windows, you will have to fix some settings in your php.ini.

Read more here:
http://www.php.net/manual/en/ref.mail.php
Attachments
check-thold.zip
Modified version of check-thold.php that should work for all platforms.
(2.6 KiB) Downloaded 514 times
benhanson
Posts: 43
Joined: Tue Feb 08, 2005 8:59 pm

That did it

Post by benhanson »

Copied the new file out, reran the scheduled jobs and that did it(I'd already done the php.ini mail mods) Thanks! I'll post if anything odd occurs.
williem
Cacti User
Posts: 69
Joined: Tue Feb 08, 2005 10:36 am

wish

Post by williem »

Hey,

I am looking at the threshold and it looks pretty good. One thing that I would like to add to the wish list is a page that just lists "exceptions". I have over 1200 hosts that I am monitoring. when I get a bandwidth exception, it would be very nice to be able to go to a single page and see anywhere that is having an issue. dont really need to see all the nodes tht are not having issues <g>.

BTW, I am looking forward to your bandwidth mods!!!! I use mainly counters on my system.,

Regards,

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

Post by adesimone »

the new version has been released here:

http://forums.cacti.net/viewtopic.php?p=25571

most of the requested features have been added...
yuvraj
Posts: 1
Joined: Tue Jun 16, 2009 4:38 pm
Location: USA

mysql trigger Error

Post by yuvraj »

Hi I'm a bit new to cacti.
However I'm using my company URL to view cacti graph.

I tried using your patch.
I got following error while using ./install.sh /var/www/cacti

cp: cannot stat `/var/www/cacti/include/config_arrays.php': No such file or directory
Modifying files...
Adding SQL tables...
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'trigger int(11) default '1',
triggerct int(11) default '0',
PRIMARY KEY (id' at line 9


I do not see any graph.
I get "YOU DO NOT HAVE RIGHTS FOR TREE VIEW" on clicking graphs.

I can see "threshld" tab but clicking it opens a blank page.


httpd error log shows:

[Tue Jun 16 17:33:40 2009] [error] [client 10.8.1.54] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/rrd.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/cacti/include/top_graph_header.php on line 35, referer: http://10.8.1.86/cacti/graph_view.php?a ... leaf_id=10
[Tue Jun 16 17:33:40 2009] [error] [client 10.8.1.54] PHP Fatal error: Call to undefined function read_config_option() in /var/www/cacti/include/top_graph_header.php on line 37, referer: http://10.8.1.86/cacti/graph_view.php?a ... leaf_id=10


Please help...!
dpeuziat
Posts: 5
Joined: Wed Jul 08, 2009 2:31 am
Contact:

SNMP traps /script execution on threshold?

Post by dpeuziat »

Hi

Would it be possible to send an snmp trap or to execute a script when a threshold is breached?

this would be very convenient in our environment

Denis
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Please do not resurrect posts from 2005, start a new topic.
Locked

Who is online

Users browsing this forum: No registered users and 2 guests