Page 1 of 1

Report of Monitors and its contacts

Posted: Mon Dec 30, 2019 4:24 am
by ibmkenexa
Hi Team,

I am using Nagios XI 5.2.7. Please guide me how to get list of contacts and contact groups added to all hosts and service monitors. Would like to get this report in .CSV format.

Thank you.

Re: Report of Monitors and its contacts

Posted: Mon Dec 30, 2019 12:18 pm
by mbellerue
I think the easiest way to get this information is going to be through the API. Take a look at the Help -> Config Reference section in Nagios XI. You can look at each service, host, and service/host group to see what they have listed as contacts. You will have to do a little extra programming to get it into a CSV format, though.

Re: Report of Monitors and its contacts

Posted: Tue Dec 31, 2019 6:28 am
by ibmkenexa
Thanks for your update. Will check and let you back if any.

Re: Report of Monitors and its contacts

Posted: Thu Jan 02, 2020 9:36 am
by lmiltchev
@ibmkenexa, do you want us to keep the thread open for a while or it is safe to lock it? Thanks!

Re: Report of Monitors and its contacts

Posted: Wed Jan 15, 2020 10:22 pm
by ibmkenexa
You can lock it. Can we add our comment/question after lock?

Re: Report of Monitors and its contacts

Posted: Wed Jan 15, 2020 10:47 pm
by Box293
One a thread is locked then no more comments can be made.

Re: Report of Monitors and its contacts

Posted: Thu Jan 23, 2020 4:59 am
by ibmkenexa
When I try to get report through given API I am getting below error. can you check once

Error 1:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /nagiosxi/api/v1/config/host was not found on this server.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at nagios-prod.kenexa.com Port 443</address>
</body></html>

Error2:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /nagiosxi/api/v1/objects/hostgroupmembers was not found on this server.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at nagios-prod.kenexa.com Port 443</address>
</body></html>

Re: Report of Monitors and its contacts

Posted: Thu Jan 23, 2020 7:45 am
by scottwilkerson
These API endpoints were added in a much later version of XI and were not available in Nagios XI 5.2.7, you would need to upgrade to use them.

Re: Report of Monitors and its contacts

Posted: Tue Jan 28, 2020 4:52 am
by ibmkenexa
Thank you You can close this ticket