Skip to content

Get host connection status #577

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

You must be logged in to vote

Hi @alexgumo7 -

The Connection Status value is calculated dynamically and then shown. It does not align to an attribute directly, but you can filter results to get a close approximation using the last_seen value.

falcon.query_devices_by_filter(filter="last_seen:>='now-10m'+last_seen:<'now'")

I would recommend not searching for a value lower than 5m here.

What information are you wanting to retrieve from the hosts? The host doesn't need to be online for you to retrieve data from the API, but would need to be if you are wanting to run RTR commands against it (and get the results back, you would still be able to queue the command).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexgumo7
Comment options

Answer selected by alexgumo7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
hosts Hosts or Host Groups issues and questions
2 participants