Page 1 of 1

Invoke Event Handler on Every Acknowledgement?

Posted: Wed May 27, 2020 5:36 pm
by rpike
Nagios XI version 5.5.11

We have recently starting using MS Teams for notifications.
I have figured out how to make it work for service alert notifications using a Perl-based handler script.

Now we would like to automatically generate a similar notification to MS Teams whenever someone acknowledges an alert.
* How would we configure it to invoke a handler script on acknowledgements?
* What macros would be relevant to process in the handler script?

Re: Invoke Event Handler on Every Acknowledgement?

Posted: Thu May 28, 2020 11:55 am
by ssax
You would need to use something like Admin > Manage Components > Global Event Handlers.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

But you would need to use the notification one and then use the $NOTIFICATIONTYPE$ macro:

Code: Select all

https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/macrolist.html#notificationtype
The only problem with that is that an ACK would be sent out to multiple contacts (usually), so for every acknowledgement all the contacts will be sent that ACK notification from the host/service contacts. You would need to code your script to make sure that it already hasn't sent one for this host/service since there are multiples expected.

Let us know if you have any questions.