Hi Team,
Is there a way we can extract the critical and warning thresholds for all services for each server in Nagios?
Extract data from Nagios
Re: Extract data from Nagios
Export the configuration using the API and you can grep for some key lines. For example:
This info can also be found in /usr/local/nagios/var/objects.cache.
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'As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.