# Command to monitor Jenkins idle status returns false if even 1 executor is being used

**URL:** <https://community.jenkins.io/t/command-to-monitor-jenkins-idle-status-returns-false-if-even-1-executor-is-being-used/10462>\
**Category:** Ask a question\
**Tags:** question\
**Created:** [October 30, 2023, 1:04pm UTC](https://community.jenkins.io/t/command-to-monitor-jenkins-idle-status-returns-false-if-even-1-executor-is-being-used/10462 "2023-10-30T13:04:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tvogl](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@tvogl](https://community.jenkins.io/u/tvogl)\
**Post date:** [October 30, 2023, 1:04pm UTC](https://community.jenkins.io/t/command-to-monitor-jenkins-idle-status-returns-false-if-even-1-executor-is-being-used/10462/1 "2023-10-30T13:04:31Z")

</div>

Setup:  
Using Jenkins LTS 2.421  
Jenkins Nodes on Java 11

Why:  
We use this to alert us if nodes are being used 100% and jobs start queuing.

Expected behavior:  
When running the following command it should return idle : true, if there are any idle executors.  
curl -X POST -L --user username:token [https://jenkins.example.com/computer/nodename/api/json?pretty=true](https://jenkins.example.com/computer/nodename/api/json?pretty=true) | grep “idle”

Problem:  
I noticed that both Linux and Windows nodes are returning false if even a single executor is currently being used. If no executors are being used it does return true.

Is there another way to accomplish this task if this solution is no longer viable.

---

<div class="post-metadata">

**Author:** ![tvogl](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@tvogl](https://community.jenkins.io/u/tvogl)\
**Post date:** [November 2, 2023, 12:59pm UTC](https://community.jenkins.io/t/command-to-monitor-jenkins-idle-status-returns-false-if-even-1-executor-is-being-used/10462/2 "2023-11-02T12:59:18Z")

</div>

Maybe this is a bug or maybe a better method may be used?
