monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-email alerts


From: Alex Litvak
Subject: Re: Non-email alerts
Date: Thu, 29 May 2014 13:42:49 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Right now alert is being send implicitly on start / restart. Is there a way to do restart + alert exec then?

I want process to restart and notify service foo by a custom protocol. I can, as an option, create an exec script to do restart and notify. However there is a known issue with using exec for restart which will probably be fixed with a new scheduling engine implemented. The other option for me would be to write a wrapper for a start up script of each program I monitor. I would rather have an alert setting to execute something passing the monit information to it

alert option exec foo

So foo could get process id of failed program, process / command name, error message text, ... etc

Thanks,


On 05/29/2014 10:09 AM, Martin Pala wrote:
Such mechanism is in place already ... see the "exec" action.

Regards,
Martin


On 29 May 2014, at 17:00, Sergey Maslyakov <address@hidden> wrote:

What would it take to extend the alerting system to allow for an external 
program to run in response to the alert condition? This way, alerts can be 
anything: SNMP traps, alarms in an operations and administration management 
system, etc.

Email is a good notification mechanism but it is a pretty narrow use case in 
more elaborate management systems.

Maybe there is a way to harvest the "event queue" on disk by an external 
application?


Regards,
/Sergey
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general


--
Alex Litvak
System Architect
(847) 716-5102 Phone
(847) 716-5112 Fax
(800) 254-3109 Customer Support
191 Waukegan Rd * Suite 310 * Northfield, IL 60093
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]