Monitoring Bamboo remote Agents
Asked by Steven Parsons:

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.


Answers:
author: Brent Villalobos
body: 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.

comments: author: Steven Parsons
body: 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 :)


author: Jared Zoneraich
body: Hey Brent, do you know where in the database I can find the remote agents?


author: Brent Villalobos
body: 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.


author: Jared Zoneraich
body: 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)?


author: Brent Villalobos
body: You're correct Jared.


author: EddieW
body: 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.


author: EddieW
body: 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](https://eddiewebb.atlassian.net/wiki/display/AAFB/Remote+Agent+Management+with+monit).

![Update and view agent status](https://eddiewebb.atlassian.net/wiki/download/attachments/23986178/screenshot_1_agent_details.png?version=1&modificationDate=1407016697928&api=v2&effects=border-simple,blur-border)

[](https://marketplace.atlassian.com/plugins/com.edwardawebb.bamboo-agent-apis)<https://marketplace.atlassian.com/plugins/com.edwardawebb.bamboo-agent-apis>

[](https://eddiewebb.atlassian.net/wiki/display/AAFB/Agent+Apis+for+Bamboo)<https://eddiewebb.atlassian.net/wiki/display/AAFB/Agent+Apis+for+Bamboo>


author: EddieW
body: 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](https://eddiewebb.atlassian.net/wiki/display/AAFB/Remote+Agent+Management+with+monit).

![Update and view agent status](https://eddiewebb.atlassian.net/wiki/download/attachments/23986178/screenshot_1_agent_details.png?version=1&modificationDate=1407016697928&api=v2&effects=border-simple,blur-border)

[](https://marketplace.atlassian.com/plugins/com.edwardawebb.bamboo-agent-apis)<https://marketplace.atlassian.com/plugins/com.edwardawebb.bamboo-agent-apis>

[](https://eddiewebb.atlassian.net/wiki/display/AAFB/Agent+Apis+for+Bamboo)<https://eddiewebb.atlassian.net/wiki/display/AAFB/Agent+Apis+for+Bamboo>

comments: author: Daniel Varela Santoalla
body: Hi Ed, any chance of getting this updated for the latest versions of Bamboo?

Thanks a lot

Daniel


author: Richard Cross
body: I would also like this to be updated for the latest versions of Bamboo - particularly 5.12.3.1.


author: Steven Parsons
body: 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