Jump to content

Automate Agent Licenses Available 1.0.1

   (3 reviews)

About This File

This monitor will compare the number of available licenses to the value in Result. This value will be customized based on the number of agents you are currently licensed for, but you can change the value to be warned earlier or later. The Identity field reports the available agent licenses in increments of 10. This means that the monitor identity will be "50" when between 41 and 50 licenses remain, and "40" when between 31 and 40 remain. In this way a unique alert will be triggered each time the available count is reduced by 10 (or more). If you do not want new alerts as the remaining count continues dropping below the threshold, set the identity field to "computers.computerid" (no quotes).

The Duplicate Alert Frequency is set to Once per 7 days. So after 1 week another alert would generate even if the available count did not change. Set to "Send Fail After Success" if you do not want any repeat notifications for the same "incident".

The Alert Template should default to the stock "Create Ticket" alert. I would suggest this be changed to an alert template that generates an email so that the notice can be sent directly to the person who manages agent licenses. 

NOTE: The monitor is designed to alert against the Automate Server (where the "LTAgent" service is Running).  If you don't have an agent on your Automate Server, the monitor falls back to Computer ID 1. If you don't have THAT agent the monitor won't work.  To change the fallback computer ID, edit the Additional Condition and update "IFNULL(MAX(computerid),1)", replacing "1" with whatever computer you want to generate the alert against.

Install Instructions: Unzip the attached file, and import into Control Center using "Tools -> Import -> SQL File". The Internal Monitor name will be "CWAutomate Agent Licenses Available".

  • Thanks 5

User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.




This works really well. just change Result to value you want it to be alerted to when the available licences drops below that value. When testing it set to higher value to show how many licences remain i.e. 1000 for me. 

Link to review


Works well but needs some tweaks for the updated CWA since this monitor was originally created.  See the Comments.

Link to review


Great, fundamental add-on monitor from Darren.  Allows you to see a stat that really should be a standard feature.

One tweak though, I had to modify the computerid because I didn't have an LTAgent "agent", so for me, using the computerid 999 as an example, I had to change the default:

computers.computerid IN (SELECT IFNULL(MAX(computerid),1) FROM services WHERE `name`='LTAgent' AND state='Running')


computers.computerid IN (SELECT IFNULL(MAX(computerid),999) FROM services WHERE `name`='LTAgent' AND state='Running')

Link to review
  • Create New...