Invoke Event Handler on Every Acknowledgement?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rpike
Posts: 12
Joined: Mon Apr 20, 2015 12:17 pm

Invoke Event Handler on Every Acknowledgement?

Post 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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Invoke Event Handler on Every Acknowledgement?

Post 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.
Locked