Page 1 of 1

get the status information from service status in nagios xi

Posted: Mon Nov 04, 2019 5:49 am
by Saha
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.

Re: get the status information from service status in nagios

Posted: Mon Nov 04, 2019 12:52 pm
by scottwilkerson
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

Code: Select all

current_state=nin:0