XI and xMatters Notifications

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

XI and xMatters Notifications

Post by brdr »

Hi we are using Nagios XI 2014R2.5.

We are testing xMatters components in XI. We have properly configured (x)Matters Event Handlers in Admin->Manage Components. On the logging side we have set:

enable_notifications=1
debug_level=-1
debug_verbosity=2
max_debug_file_size=100000000

Question, does Nagios XI log any transaction into the log files to show the REST call it makes out to xMatters as we do not see any event in the nagios log and the events are not being received by xMatters?

Thanks
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: XI and xMatters Notifications

Post by abrist »

Nagios should log event handlers as long as the follow is set in the nagios.cfg:

Code: Select all

log_event_handlers=1
You could also add some echos to your event handler script, dumping the output from the event handler to a file in /tmp like:

Code: Select all

echo "Event handler script running . . ." >> /tmp/event_handler.log
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: XI and xMatters Notifications

Post by brdr »

Thanks abrist! It is working.

In addition, (info from swilkerson)....

This component (xMatters) uses Nagios global event handler in XI, so you should have both of these in your nagios.cfg:

global_host_event_handler=xi_host_event_handler
global_service_event_handler=xi_service_event_handler

These are processed by the eventman.php cron job and you should be able to see them logged in:
/usr/local/nagiosxi/var/eventman.log
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: XI and xMatters Notifications

Post by ssax »

I'm happy it's working for you, thanks for the additional info for future visitors, can we mark this as resolved and lock the topic?
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: XI and xMatters Notifications

Post by brdr »

No problem. Please close. 8-)
Locked