Mass Acknowledgement via Response Option

Not Yet Reviewed

When our users receive a critical alert from Nagios, they would like to have a response option that acknowledges all open alerts on that Nagios service / hostgroup. 

I can add a response option to our Nagios form, and I think we can write an outbound integration to do the mass acknowledgement (we have others that do similar things)...but how should we trigger it?

The outbound integration can be triggered based on "Responses" to the Nagios form. Should we write code in our outbound integration to check that the response was the one we're looking for?

0

Comments

1 comment
Date Votes

Please sign in to leave a comment.

  • Hey Michael!

       Yep, you're on the right track. Add a new outbound integration that runs on Notification Responses. The first thing to do is inspect the event.response value is the correct one. Usually I do this in the opposite manner by checking if the response is NOT "Acknowledge", print a message that I'm ignoring this response and then add a "return" statement so the script stops executing. 

    The next step is to get all the events that have your Hostname value and then looping through and terminating them. We have a handy sample script that does just that. Go create a new inbound integration with an action of "Run a script". The sample code starting about line 79 has the details on how to query for events based on a property value, then iterating through the list and terminating each one. 

    If you don't find it, let me know and I can attach it here. 

    Happy Wednesday!

       

    0

Didn't find what you were looking for?

New post