Monitoring Bamboo remote Agents

Does anyone have a good solution to monitor Bamboo remote agents? I know you can see if they are online within the adminsitration area, but that does not help if you are not in the website, or out of the office.

I have searched the Documentation and all I have found is two requests for the feature. I can't find any additional info.

thanks in advance.

4 answers

There isn't a REST API for agents. I'm not a plugin developer, but it looks like it's possible to write plugins to get agent stats since there are Bamboo plugins for that like this one: https://marketplace.atlassian.com/plugins/com.pronetbeans.bamboo.agentutils-basic/version/1

What I would do is write tools that make direct database queries since all that information is in those tables as to what agents are online/offline, what jobs are running, etc. Or you could write a script to access the agent status page and parse the HTML for relevant information. Note that both these solutions are rather hacky as you are accessing information in a format that can (and probably will) change between Bamboo releases.

thanks for tip Brent. I was hoping someone would have made a plugin. I hate to have to hack it everytime Atlassian make a new release.

Here's to hoping Atlassian can add it to the next release :)

Hey Brent, do you know where in the database I can find the remote agents?

Hey Jared. At least on Bamboo v4.3, the agent information is found in the QUEUE table. You can cross-referrence those with the BUILDRESULTSUMMARY table if you want to find specifics on what job is actually running on the agents.

Okay, thanks a lot! Just to make sure, the AGENT_TYPE column would be "REMOTE" for remote agents (my bamboo doesn't have any remote agents so I can't check)?

You're correct Jared.

Its actually discouraged to make calls directly to the DB. The Bamboo internal Java APIs provide all info needed, and additionally a free and open plugin provides a REST api to do the same.

I did manage to find a plugin that notifies if the agent goes offline. You can get it from the market place.

https://marketplace.atlassian.com/plugins/com.pronetbeans.bamboo.agentutils-basic/versions#b1

It works with Bamboo 5 as well

To pro-actively monitor and manage agents I have released a free and open source plugin until Atlassian fills the gap.

The use of UUID tokens over credentials allows scripted interactions from tools like monit.

Update and view agent status

https://marketplace.atlassian.com/plugins/com.edwardawebb.bamboo-agent-apis

https://eddiewebb.atlassian.net/wiki/display/AAFB/Agent+Apis+for+Bamboo

Hi Ed, any chance of getting this updated for the latest versions of Bamboo?

Thanks a lot

Daniel

I would also like this to be updated for the latest versions of Bamboo - particularly 5.12.3.1.

To pro-actively monitor and manage agents I have released a free and open source plugin until Atlassian fills the gap.

The use of UUID tokens over credentials allows scripted interactions from tools like monit.

Update and view agent status

https://marketplace.atlassian.com/plugins/com.edwardawebb.bamboo-agent-apis

https://eddiewebb.atlassian.net/wiki/display/AAFB/Agent+Apis+for+Bamboo

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,584 views 0 6
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you