get the status information from service status in nagios xi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Saha
Posts: 10
Joined: Thu Oct 24, 2019 8:51 am

get the status information from service status in nagios xi

Post 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.
scottwilkerson
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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked