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.
Report of Monitors and its contacts
Re: Report of Monitors and its contacts
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Report of Monitors and its contacts
Thanks for your update. Will check and let you back if any.
Re: Report of Monitors and its contacts
@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!
Re: Report of Monitors and its contacts
You can lock it. Can we add our comment/question after lock?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Report of Monitors and its contacts
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.
Re: Report of Monitors and its contacts
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>
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
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
Thank you You can close this ticket