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.
Configuring Cacti to send Alarms
Moderators: Developers, Moderators
Re: Configuring Cacti to send Alarms
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.
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.
Re: Configuring Cacti to send Alarms
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
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
Who is online
Users browsing this forum: No registered users and 1 guest