Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Monitoring Bamboo remote Agents

Steven Parsons April 22, 2013

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

1 vote
Brent Villalobos
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 22, 2013

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.

Steven Parsons April 22, 2013

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 :)

Jared Zoneraich July 23, 2013

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

Brent Villalobos
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2013

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.

Jared Zoneraich July 23, 2013

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)?

Brent Villalobos
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2013

You're correct Jared.

EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2014

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.

0 votes
EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2014

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

0 votes
EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2014

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

Daniel Varela Santoalla July 3, 2016

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

Thanks a lot

Daniel

Richard Cross August 12, 2016

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

0 votes
Steven Parsons July 23, 2013

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events