Page 1 of 1

Nagios auto acknowledge xMatters notification

Posted: Tue Dec 02, 2014 1:22 pm
by brdr
Hi,

Using Nagios XI 2014R1.5 and xMatters v2.0.

We are implementing xMatters for the Nagios host/service state changes, notifications, escalations. etc...

We will use web service/host URL to be called from Nagios XI service via the xMatters component.

Question, is there any way we can have Nagios XI auto acknowledge once the web service call to xMatters is complete?

Re: Nagios auto acknowledge xMatters notification

Posted: Tue Dec 02, 2014 1:51 pm
by slansing
You could trigger a script at some point in between which submits an acknowledgement command through the Nagios command pipe.

See:

http://nagios.sourceforge.net/docs/3_0/extcommands.html

Re: Nagios auto acknowledge xMatters notification

Posted: Tue Dec 02, 2014 3:00 pm
by brdr
Thank you! When i have free moment i will look at your suggestion and post back.

Re: Nagios auto acknowledge xMatters notification

Posted: Tue Dec 02, 2014 5:17 pm
by slansing
Great, feel free to ask any questions you have, it should be fairly straightforward. If you have a bash scripter in house it should be short work.

Re: Nagios auto acknowledge xMatters notification

Posted: Wed Mar 04, 2015 7:42 pm
by brdr
ok. We are now ready to implement this. Question, is the external command method the recommended way to process state change back into Nagios from another application? Is there another method (i.e REST API, HTTP Post) available?

brdr

Re: Nagios auto acknowledge xMatters notification

Posted: Thu Mar 05, 2015 2:22 am
by Box293
Have a look at this thread:

http://support.nagios.com/forum/viewtop ... 110#p90830

Basically, you use curl to send the command through to http://XX.XX.XX.XX/nagios/cgi-bin/cmd.cgi

Re: Nagios auto acknowledge xMatters notification

Posted: Thu Mar 12, 2015 1:23 pm
by brdr
Thanks slansing. I was able to successfully use external commands to acknowledge services and hosts.

Please close.