How to get the status of slave machine

We have a test automation suite which is running through at every morning. Due to some issues our agent machine is got shutdown so we are facing agent machine is in offline issue.

Can you please suggest how to get the status of the agent machine whether is it online or not.

use any of the monitoring /metrics plugins and your favourite observablity stack?

3 Likes

Hi there,

As a reminder, the term “agent” to refer to an agent has been deprecated since 2016. Please refer to On Jenkins Terminology Updates for more details. We request you update your post.

As for your issue, you could try to gather some data about your agents via the REST API.
I made a few tries there: https://github.com/gounthar/jenkins-remote-utils/blob/d0acf450ae225064a5ec7b977eaf316c050d25a7/jenkins_agents.sh .

1 Like