Extract data from Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RebeccaIlene
Posts: 164
Joined: Tue Apr 02, 2019 8:38 pm

Extract data from Nagios

Post by RebeccaIlene »

Hi Team,

Is there a way we can extract the critical and warning thresholds for all services for each server in Nagios?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Extract data from Nagios

Post by cdienger »

Export the configuration using the API and you can grep for some key lines. For example:

Code: Select all

curl -XGET "https://xi_ip/nagiosxi/api/v1/config/service?apikey=api_key&pretty=1" | grep 'config_name\|service_description\|check_command'
This info can also be found in /usr/local/nagios/var/objects.cache.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked