Notifications based on action events

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Notifications based on action events

Lutz Mader
Hello Martin,
you advise me to send notifications based on "action" events.
I can't find any way in Monit to define/use "action" events,
the (mail) alert statement is the only place to do this, I think.

But scripts can't called, based on a "action" event (like monitor/start/stop/etc.).
How to do this with Monit.

Thanks for any help,
with regards,
Lutz

Schon gewusst?! Neben dem E-Mail-Postfach bietet freenet.de auch eine
INTEGRIERTE CLOUD-LÖSUNG MIT 3 GB SPEICHER und das alles KOMPLETT
KOSTENFREI.
https://email.freenet.de/index.html
[https://email.freenet.de/index.html?utm_medium=Mail%20Basic&utm_source=Mailfooter&utm_campaign=Footer%20A&epid=e9900000927&utm_content=Link]


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Reply | Threaded
Open this post in threaded view
|

Re: Notifications based on action events

martinp@tildeslash.com
Hello,

monit doesn't allow to catch the 'action' event - it is triggered as part of start/stop/restart/unmonitor/monitor action, i.e. if you need to call some script if one of these occurred, it should be part of the start/stop/restart method definition.

M/Monit allows to define a rule even for the 'action' event:



Best regards,
Martin


On 26 Jun 2018, at 18:39, [hidden email] wrote:

Hello Martin,
you advise me to send notifications based on "action" events.
I can't find any way in Monit to define/use "action" events,
the (mail) alert statement is the only place to do this, I think.

But scripts can't called, based on a "action" event (like monitor/start/stop/etc.).
How to do this with Monit.

Thanks for any help,
with regards,
Lutz

Schon gewusst?! Neben dem E-Mail-Postfach bietet freenet.de auch eine
INTEGRIERTE CLOUD-LÖSUNG MIT 3 GB SPEICHER und das alles KOMPLETT
KOSTENFREI.
https://email.freenet.de/index.html
[https://email.freenet.de/index.html?utm_medium=Mail%20Basic&utm_source=Mailfooter&utm_campaign=Footer%20A&epid=e9900000927&utm_content=Link]


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


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Reply | Threaded
Open this post in threaded view
|

Re: Notifications based on action events

Lutz Mader
Hello Martin,
thanks for the hint and the screen shot.

> M/Monit allows to define a rule even for the 'action' event:

At the time I use monit to send all notification.

To add the notification code to the start/stop/restart scripts is not an
option and can't handle monitor/unmonitor besides.
Today all important alerts are send to a central system, the actions are
missed only.

Have a nice weekend,
with regards,
Lutz



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