I am trying to integrating Nagios xi with my tool. what it will basically does is, it will go and fetch the service details with status "warning" or "critical" and based on the service , it will perform some action (ex: for Disk usage it will run command to delete temp files ).
right now , i am stuck to update the status of services.
get the status information from service status in nagios xi
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: get the status information from service status in nagios
You can get this from the API
Help -> API Docs -> Objects Reference -> objects/servicestatus
If you ONLY want all non-OK items you can add the following to the URL
Help -> API Docs -> Objects Reference -> objects/servicestatus
If you ONLY want all non-OK items you can add the following to the URL
Code: Select all
current_state=nin:0