Configuring Cacti to send Alarms

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
leoh
Posts: 30
Joined: Thu Feb 05, 2009 8:55 am

Configuring Cacti to send Alarms

Post by leoh »

Is it possible to configure cacti to run a external command when a Threshold is reached in a graph?

If not, which add on is the recommend one for this task?

Developers,
Why you do not create this functionallity? It is so important that I cannot imagine why it is not present in this great application.
Nice
Posts: 30
Joined: Mon Sep 20, 2010 9:23 am
Location: Lede, Belgium

Re: Configuring Cacti to send Alarms

Post by Nice »

Try the thold plugin.
This will do the trick.

http://docs.cacti.net/plugin:thold
leoh
Posts: 30
Joined: Thu Feb 05, 2009 8:55 am

Re: Configuring Cacti to send Alarms

Post by leoh »

The problem is that this plugin does not allow me to execute an external program.
Email is not a reliable solution.

I read a good solution for it. Using procmail to execute external commands.
I will generate email (using thold) to root on local host and run exterrnal command with procmail to generate an alarm.
This will be much more reliable.
Thanks.
zeratul
Posts: 1
Joined: Mon Aug 03, 2009 8:28 pm

Re: Configuring Cacti to send Alarms

Post by zeratul »

Another option would be to enable syslog in thold setup and parse the log files. As all the thresholds will be logged there, there must be pretty simple, for someone with average programming language, to watch the thresholds status and execute an external command based on that.
Even an existing script can be modified - for example sshblack which is written in Perl.

I agree that script execution feature in thold would be a great add-on and it looks like it's still on the to do list of thold developer (http://blog.cactiusers.org/2009/02/25/t ... -of-thold/). Unfortunately 2010 it's almost over and thold 0.5 is still a work in progress (I hope). In any case, thold is an excellent plugin for Cacti. It saved a lot of trouble for me when I was trying to send notifications related to the bandwidth usage, so the developer of this plugin has my full gratitude.

Z
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests