Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

bamboo server monitoring


We want some monitoring mechanisms to check the following?

1.No of agent connected at the moment?

2.Is the Bamboo server is accessible or not

2 answers

1 accepted

0 votes
Answer accepted

You can use the Bamboo REST API to achieve 1 in a similar fashion via a GET /agent?online call:

Provides a list of all agents. Use query parameter "online = true/false" 
to filter only online agents.

 So something along the lines of (top of my head):

curl --user username:password -H "Accept: application/json" \ | jq 
'. | length'


Here's a more specific example to confirm my memory (based on HTTPie rather than cURL).

Initially there are 2 local and 0 remote agents:

λ http -a user:pass | jq '. | length'
λ http -a user:pass | jq '. | length'

I've then started 2 elastic agents in addition to the 2 local ones, which yield 4 agents overall:

λ http -a user:pass | jq '. | length'
λ http -a user:pass | jq '. | length'

Terminating 1 elastic agent yields the expected outcome too:

λ http -a user:pass | jq '. | length'
λ http -a user:pass | jq '. | length'



Currently, I am doing this way

curl --user adminuser:password | grep -o '<p>Available remote agent slots'

I will try your suggested approach as well.

@ Steffen: Yours suggested that doesn't fulfill my requirement.I guess I put the wrong question.

I have a license of x agents,I want to check how many agents are online at the moment so that I can plan my activities accordingly.

@Neeraj Singh - I'm afraid I don't t really get what you are asking for here. I've updated my answer with a more specific example to confirm my memory, and it seems to yield the expected result by telling me how many agents are currently available - is this not the 'No of agent connected at the moment' that you are looking for?

@Steffen Opel _Utoolity_Thanks for your knowledge sharing.It was great and helpful

2. Done with following command

curl --user username:password -H "Accept: application/json" [ | jq .state

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

251 views 4 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you