Page 1 of 1

XI and xMatters Notifications

Posted: Thu Feb 26, 2015 10:37 am
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

Re: XI and xMatters Notifications

Posted: Thu Feb 26, 2015 11:27 am
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

Re: XI and xMatters Notifications

Posted: Thu Feb 26, 2015 2:59 pm
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

Re: XI and xMatters Notifications

Posted: Thu Feb 26, 2015 3:26 pm
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?

Re: XI and xMatters Notifications

Posted: Thu Feb 26, 2015 3:47 pm
by brdr
No problem. Please close. 8-)