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
XI and xMatters Notifications
Re: XI and xMatters Notifications
Nagios should log event handlers as long as the follow is set in the nagios.cfg:
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
log_event_handlers=1Code: Select all
echo "Event handler script running . . ." >> /tmp/event_handler.logFormer 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.
"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.
Re: XI and xMatters Notifications
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
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
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
No problem. Please close. 