Page 1 of 1

Nagios XI API : Host Status (UP Duration)

Posted: Tue Aug 13, 2019 10:35 am
by hixavier
Hello,

Using the Nagios XI API, is it possible to get the amount of time a host has been UP(Duration)? For example, in the GUI, on the left hand side, if you click on `Host Status`, you can see a list of your hosts with the following columns: Status, Duration, Attempt, Last Check, Status Information. Is it possible to get this information using the Nagios XI API?

Thanks :)

Re: Nagios XI API : Host Status (UP Duration)

Posted: Tue Aug 13, 2019 11:11 am
by scottwilkerson
It isn't directly available but you could calculate it off of the last_state_change value in the API for the hoststatus.