Nagios XI- 5.5.8
Nagios XI- 5.5.8
IS there a way to generate a report showing everything being monitored i.e hosts\interfaces etc
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Nagios XI- 5.5.8
@dfmco, There're a few ways to see all the objects. One of them is to use the JSON Query Generator. Open the following link in the browser:
http://192.168.3.3/nagios/jsonquery.html
*Replace 192.168.3.3 with your XI server IP address.
Then choose CGI -> Object JSON CGI
Query -> servicelist or hostlist
Another way is to use the REST API queries in XI.
In XI web interface go to the Help menu, in the left column click on Objects Reference. Copy and use the following queries:
http://192.168.3.3/nagios/jsonquery.html
*Replace 192.168.3.3 with your XI server IP address.
Then choose CGI -> Object JSON CGI
Query -> servicelist or hostlist
Another way is to use the REST API queries in XI.
In XI web interface go to the Help menu, in the left column click on Objects Reference. Copy and use the following queries:
GET objects/host
GET objects/service
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Nagios XI- 5.5.8
Thank you very much. I will give it a try
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios XI- 5.5.8
Let us know how it works outdfmco wrote:Thank you very much. I will give it a try
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: Nagios XI- 5.5.8
I always need to see stuff from a distance. Like... everything at once. Like ALL my running tests and what they do.
In Nagios you basically have to drill in to see things one at a time. Because of this, which is what it is... I took it upon myself a while ago to put something together that lets me see things in a bigger picture.
I am attaching a zip file with some code that you can figure out how to use. Change it to what works for you.
Basically I use perl to do a Database query, then walk through the data and make web pages. I add the web pages to Nagios Tools menu. On the web pages, one for Hosts, one for Services, you can see All your monitors, and search for stuff.
Play with the files I am attaching and maybe use them as a way to learn more about the underside of Nagios. There are many ways to get data. The trick is finding a way to display it.
I use cron to run them once and hour. I use a shell script to fill in locations and environment data which then runs the perl file. You may want to do it differently. Mainly, there is a sql query, and a way to take the data and make a web page. Simple.
My people use this all the time to see what they are responsible for.
Good Luck - see attached - have fun...
Steve B
In Nagios you basically have to drill in to see things one at a time. Because of this, which is what it is... I took it upon myself a while ago to put something together that lets me see things in a bigger picture.
I am attaching a zip file with some code that you can figure out how to use. Change it to what works for you.
Basically I use perl to do a Database query, then walk through the data and make web pages. I add the web pages to Nagios Tools menu. On the web pages, one for Hosts, one for Services, you can see All your monitors, and search for stuff.
Play with the files I am attaching and maybe use them as a way to learn more about the underside of Nagios. There are many ways to get data. The trick is finding a way to display it.
I use cron to run them once and hour. I use a shell script to fill in locations and environment data which then runs the perl file. You may want to do it differently. Mainly, there is a sql query, and a way to take the data and make a web page. Simple.
My people use this all the time to see what they are responsible for.
Good Luck - see attached - have fun...
Steve B
You do not have the required permissions to view the files attached to this post.
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios XI- 5.5.8
Thanks for sharing @SteveBeauchemin!