Page 1 of 1

uptime API

Posted: Thu Aug 01, 2019 11:59 pm
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

Re: uptime API

Posted: Mon Aug 05, 2019 7:33 am
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