Hello
as our sysadmin want to double check if we miss any check on our Nagios Infrastructure we would like a way to export all service checks that are in place on Nagios
thank you
Nagios xi export checks in excel
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Nagios xi export checks in excel
Which info are you looking for for the service checks? We have an API in xi that can export much of this, not in excel but in JSON
-
- Posts: 15
- Joined: Tue Apr 30, 2019 1:34 pm
Re: Nagios xi export checks in excel
We would like to export service check per host
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Nagios xi export checks in excel
You can get this in JSON from theAstergiou wrote:We would like to export service check per host
Help -> API Docs -> Objects Reference -> objects/service
Or from the CLI you can query the DB with a command like the following:
Code: Select all
echo "SELECT o.name1 as host_name, o.name2 AS service_description from nagios_objects o WHERE o.object_id NOT IN (SELECT service_object_id from nagios_servicegroup_members) AND is_active=1 AND objecttype_id=2;" | mysql -pnagiosxi nagios