Nagios auto acknowledge xMatters notification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Nagios auto acknowledge xMatters notification

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios auto acknowledge xMatters notification

Post 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
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Nagios auto acknowledge xMatters notification

Post by brdr »

Thank you! When i have free moment i will look at your suggestion and post back.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios auto acknowledge xMatters notification

Post 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.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Nagios auto acknowledge xMatters notification

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios auto acknowledge xMatters notification

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Nagios auto acknowledge xMatters notification

Post by brdr »

Thanks slansing. I was able to successfully use external commands to acknowledge services and hosts.

Please close.
Locked