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...
Cacti Alarm Plugin
Moderators: Developers, Moderators
Cacti Alarm Plugin
Tiago Coimbra
Gruyère Energie
Gruyère Energie
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.
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.
-
- Cacti User
- Posts: 66
- Joined: Sat Dec 06, 2003 12:44 pm
- Location: Winchester, MA
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
-sidewinder
- Attachments
-
- threshold.jpg (49.64 KiB) Viewed 16892 times
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...
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...
- alarms.gif (6.86 KiB) Viewed 16761 times
Tiago Coimbra
Gruyère Energie
Gruyère Energie
Who is online
Users browsing this forum: No registered users and 1 guest