Cacti Alarm Plugin

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
User avatar
Scipio
Posts: 22
Joined: Tue Oct 12, 2004 4:49 am
Location: Switzerland
Contact:

Cacti Alarm Plugin

Post by Scipio »

I would like to know if somebody is working on an Alarm plugin for cacti.

Something simple, a script that checks the last values of some datasources and compare them to normal values. Ifa a value is too low or too high, the script can display a red spot instead of a green spot when the value is OK. The ones who know Big Sister know what I'm trying to explain.

I want to write a script like that.
Entering a new alarm:
- select datasource to monitor
- give max and min value
- select the behavior when the value is not OK during a few poll cycles

And all spot will be displayed by host and datasource.

I hope that I can easely read the rrd file with the rrdtool.exe....

Let me know what you think about that...
Tiago Coimbra
Gruyère Energie
Hip
Posts: 18
Joined: Wed Sep 01, 2004 5:21 am
Location: Switzerland

Post by Hip »

Hello,

One guy I know has written a Perl script that extract values from an RRD file (I think using the dump command from rrdtool). He has encountered a few problems with that but I don't remember the details, I can ask him if you want.

Another possibility would be to use the value directly fetched from the polling (before it is injected in RRDs) and create a "status file" dedicated to the alarming, where you can have hard / soft limits of all hosts & services. I think this could be easier to implement (and more stable) than the method that reads the RRDs.

But have you considered using Nagios for the alarming ?! This dedicated tool is quite complete.
sidewinder
Cacti User
Posts: 66
Joined: Sat Dec 06, 2003 12:44 pm
Location: Winchester, MA

Post by sidewinder »

Yep, hope to post a beta in a couple of days too. It'l currently send violation notices via email or to syslog and should be OS independant. It's going to require the php perl PECL module, so if you are interested in using it you will have to be running php 5.x. It's a evolution of aloe (earlier post), so the threshold checking is performed in the scripts.

-sidewinder
Attachments
threshold.jpg
threshold.jpg (49.64 KiB) Viewed 16891 times
JBs
Posts: 11
Joined: Sat Oct 23, 2004 9:55 am

Post by JBs »

Really nice job sidewinder ! 8)

This feature was really missing in cacti ! I'm in a hurry to see that ;)
TPCz

wow...

Post by TPCz »

awesome stuff that's coming out for cacti..

now all we need is a network map plugin and also a display-system plugin.. something that also refresh itself and shows different graph ..and cycles among all the graphs.. :P
User avatar
Scipio
Posts: 22
Joined: Tue Oct 12, 2004 4:49 am
Location: Switzerland
Contact:

Post by Scipio »

Nice job sid :)

I'm doing quiet the same thing, but It's a indepedent tool. Like a plugin for cacti that doesn't have to be included in the code.

The user selects a RRD file, then the script shows the DS. The user selects then a data source, and after that, he specifies the max and min values. Finally, every time the display page is viewed, the php script gets the last values of the RRD files being monitored.

For the moment, I still scripting, but I can now easy check the values and tell if the values are ok or not.

The mailing thing is a good think... But I have to think about it... Cause I don't want to send 1000 emails if during a night, a value is not ok :) If an email is sent, the user must tell the script that he has seen the mail, and is aware of the problem. Like a link in the mail that the user must click.. more news soon...
Attachments
Here is a screenshot of the work in progress...
Here is a screenshot of the work in progress...
alarms.gif (6.86 KiB) Viewed 16760 times
Tiago Coimbra
Gruyère Energie
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests