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
Community showcase
Published Monday in Jira Service Desk

Frequently Asked Questions for Jira Service Desk (AKA JSD FAQ)

Just the FAQs! Welcome to the Community, and this Focused-FAQ! Here, we've pulled together some of the most frequently asked questions associated with Jira Service Desk (JSD). We hope ...

109 views 0 9
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