Nagios xi export checks in excel

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
Astergiou
Posts: 15
Joined: Tue Apr 30, 2019 1:34 pm

Nagios xi export checks in excel

Post by Astergiou »

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

Re: Nagios xi export checks in excel

Post by scottwilkerson »

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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Astergiou
Posts: 15
Joined: Tue Apr 30, 2019 1:34 pm

Re: Nagios xi export checks in excel

Post by Astergiou »

We would like to export service check per host
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Nagios xi export checks in excel

Post by scottwilkerson »

Astergiou wrote:We would like to export service check per host
You can get this in JSON from the
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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart