I'm looking for a mysql query to pull basic monitoring details, ( Host, Service, Notification Contact ) for each service and host monitor. If anyone has something close, I would appreciate it.
Thanks,
Marcus
Looking for Nagios Mysql Query with Contact Names
Re: Looking for Nagios Mysql Query with Contact Names
I wouldn't have anything off-hand since the database is so relational, but the REST API in XI 5 should be able to do what you want. Have you tried that? All the info is under the Help menu.
Former Nagios employee
Re: Looking for Nagios Mysql Query with Contact Names
Yes, I spent some time reviewing the REST API but did not find a query that linked the monitor detail to the configured notification contacts for the monitor.
Re: Looking for Nagios Mysql Query with Contact Names
I don't have a SQL query for you but you should be able to get the information from this page:
Let us know if that works for you.
Thank you
Code: Select all
http://YOURXISERVER/nagios/cgi-bin/config.cgiThank you
Re: Looking for Nagios Mysql Query with Contact Names
Outstanding! That works...Thank You! 
Re: Looking for Nagios Mysql Query with Contact Names
No problem, are we okay to mark this as resolved and lock the topic?
Re: Looking for Nagios Mysql Query with Contact Names
Yes, definitely.