Report of Monitors and its contacts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ibmkenexa
Posts: 28
Joined: Wed Feb 13, 2019 4:05 am

Report of Monitors and its contacts

Post 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.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Report of Monitors and its contacts

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
ibmkenexa
Posts: 28
Joined: Wed Feb 13, 2019 4:05 am

Re: Report of Monitors and its contacts

Post by ibmkenexa »

Thanks for your update. Will check and let you back if any.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Report of Monitors and its contacts

Post by lmiltchev »

@ibmkenexa, do you want us to keep the thread open for a while or it is safe to lock it? Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
ibmkenexa
Posts: 28
Joined: Wed Feb 13, 2019 4:05 am

Re: Report of Monitors and its contacts

Post by ibmkenexa »

You can lock it. Can we add our comment/question after lock?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Report of Monitors and its contacts

Post by Box293 »

One a thread is locked then no more comments can be made.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ibmkenexa
Posts: 28
Joined: Wed Feb 13, 2019 4:05 am

Re: Report of Monitors and its contacts

Post 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>
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Report of Monitors and its contacts

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ibmkenexa
Posts: 28
Joined: Wed Feb 13, 2019 4:05 am

Re: Report of Monitors and its contacts

Post by ibmkenexa »

Thank you You can close this ticket
Locked