Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cacti Alarm Plugin

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
Scipio



Joined: 12 Oct 2004
Posts: 22
Location: Switzerland

PostPosted: Mon Oct 25, 2004 5:03 am    Post subject: Cacti Alarm Plugin Reply with quote

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...
Back to top
Hip



Joined: 01 Sep 2004
Posts: 18
Location: Switzerland

PostPosted: Mon Oct 25, 2004 5:24 am    Post subject: Reply with quote

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.
Back to top
sidewinder
Cacti User


Joined: 06 Dec 2003
Posts: 66
Location: Winchester, MA

PostPosted: Mon Oct 25, 2004 4:22 pm    Post subject: Reply with quote

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



threshold.jpg
 Description:
 Filesize:  49.64 KB
 Viewed:  6245 Time(s)

threshold.jpg


Back to top
JBs



Joined: 23 Oct 2004
Posts: 11

PostPosted: Mon Oct 25, 2004 4:42 pm    Post subject: Reply with quote

Really nice job sidewinder !

This feature was really missing in cacti ! I'm in a hurry to see that
Back to top
TPCz
Guest





PostPosted: Tue Oct 26, 2004 4:51 am    Post subject: wow... Reply with quote

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..
Back to top
Scipio



Joined: 12 Oct 2004
Posts: 22
Location: Switzerland

PostPosted: Wed Oct 27, 2004 6:24 am    Post subject: Reply with quote

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...



alarms.gif
 Description:
Here is a screenshot of the work in progress...
 Filesize:  6.86 KB
 Viewed:  6114 Time(s)

alarms.gif


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group