Page 1 of 1

Event Handler to run cleanup script at server end

Posted: Thu Feb 15, 2018 8:42 am
by johnwchen
Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... 16&t=47479

In the future, please create a new thread and link to the old one instead of adding on.


Support,

I have recently setup Event handler as well, do you recommend event handler or writing a plugin that just run the cleanup when a critical event happens? also, is there a way to us the contact macro from the host for the services? or the contact macro from the services for the event-handlers ?

Re: Event Handler to run cleanup script at server end

Posted: Thu Feb 15, 2018 12:13 pm
by kyang
That is really up for you to decide.

Event handlers can be triggered by those critical events like a service failing, so that may be your route. But I don't exactly know what cleanup you are trying to do.

Your second question has been answered in another thread you created.
https://support.nagios.com/forum/viewto ... 522#244820