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
uptime API
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: uptime API
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
current_state = 0