Skip to content

server uptime #876

Answered by jshcodes
Siva700 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Siva700 -

Thank you for the question!!

There isn't a field returned in any of the APIs that directly speak to this value. (You could perform some calculations with last_seen and first_seen but this wouldn't always be accurate.)

Instead, we can use the RealTimeResponse and RealTimeResponseAdmin service collections to request this data from the hosts themselves. To demonstrate this, I've coded up a simple example for you.

A couple of notes

  • Specify the host to check using the hostname argument (-n).
  • You can search your entire tenant by calling this application without providing a value for the hostname command line argument (-n). Depending on the number of hosts in your environment, thi…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jshcodes
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
RTR Real Time Response issues and questions API usage General API usage issues and questions hosts Hosts or Host Groups issues and questions
2 participants