uptime API

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cfgfile
Posts: 2
Joined: Fri Jan 13, 2017 1:54 am

uptime API

Post by cfgfile »

How do I get uptime API for a certain host?
Is it still pending like was on https://support.nagios.com/forum/viewto ... =6&t=40549
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: uptime API

Post by scottwilkerson »

If you were looking at the objects/servicestatus you can calculate the uptime from the last_state_change if the service is currently in a OK state

current_state = 0
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked