Connecting to ConnectWise Automate On Premises (Formerly Known as LabTech)


This article describes how to add on premises ConnectWise Automate® as a datasource in BrightGauge.

Connecting to an on-premises instance of Automate consists of the following steps:

  1. Install the BrightGauge agent on a computer on the same network as your MySQL server. Please refer to Using the BrightGauge Agent for instructions.
  2. Create a user in your MySQL Automate database.
  3. Connect to Automate from BrightGauge.

Create a MySQL User (Pre Automate 2021.1)

To create a MySQL user:

  1. From the databse server, open SQLyog.
  2. Select User Manager.
  3. Click Add New User.
  4. Enter a Username and a Password.
  5. Click Create.
  6. Select the checkbox for the SELECT permission.
  7. Click Save Changes.

Create a MySQL User (Automate 2021.1+)

ConnectWise Automate® On-Premises users often connect directly, or connect applications, to the MySQL database. Prior to Automate version 2021, on-premises partners could access the MySQL database with Automate user credentials. As of 2021.1, this is no longer possible. Because we do not support the direct use of the application database or applications that require it, we recommend creating a new MySQL user that will not interfere with MySQL users managed by Automate.

Qualifying Conditions

  • ConnectWise Automate On-Premises
  • MySQL Database


It is recommended to create a MySQL user that will not interfere with MySQL users managed by Automate. For creating MySQL creating users, please refer to the links in the Additional Resources section of this document.

To create the MySQL user:

  1. Connect to the MySQL database as a user with root access.
  2. Create a new MySQL user and add any necessary privileges or permissions.
  3. Save the user.
  4. Add the details of the new user to the Users table in the LabTech database:
    • Add a row with a unique negative user ID (e.g., -10).
    • In the name column, enter the username of the new user.
    • Save the new record.
    • Confirm the record is saved properly.
  5. Restart the database agent (ltagent service) to confirm the user has been added properly.
    • If the user remains in MySQL after the database agent has been restarted, the user table record has been added correctly.
    • If the user is removed from MySQL after the database agent restarts, you must re-add the user. Ensure that the username contains no specials characters or trailing or leading white spaces.

Additional Information

User table entries that are negative values cannot be used to log in to Automate. Automate will remove any MySQL users that are not in the User table or managed by Automate.

Additional Resources

The following documentation links for creating MySQL users and inserting data into tables have been provided for your reference.


Optional Additional Permissions

The Standard Health Check dataset requires the Select permission to access the plugin_sap_latesthealthresults table in your database. If you would like to utilize the Standard Health Check dataset, please ensure that your SQL user also has the Select permission applied for the plugin_sap_latesthealthresults table.

Connect to Automate

To connect to Automate:

  1. Log in to your BrightGauge account.
  2. Navigate to DATA > Datasources.
    Select Datasources from the Data menu
  3. Select Add a New Datasource.
  4. Select RMM.
    Select the RMM tab
  5. Select ConnectWise Automate On-Premise.
  6. Complete all fields.


    Name Enter a name for the datasource.
    Agent Host The BrightGauge agent computer.
    Database Internal IP/Hostname The internal IP address of the database server. If using multiple SQL instances, enter the IP address or server name followed by the instance name. For example,\instance or SQLServer\instance.
    Database Name The name of the Automate database.
    Database Internal Port The SQL port number.
    Database Username The username of your MySQL user.
    Database Password The MySQL user password.
  7. Click Test Connection. If the connection is unsuccessful, ensure that all fields are correct.
  8. If the connection is successful, click Save. Dashboards, reports, datasets, and gauges begin syncing after the datasource is saved. The sync typically takes 20 to 30 minutes to complete.

Default Resources 

BrightGauge provides the following dashboards and reports for the on premises ConnectWise Automate datasource. For a list of default gauges, select GAUGES from the top menu bar in BrightGauge.

Default Dashboards

To locate your dashboards, select DASHBOARDS from the top menu bar. Then, click the dashboard name to open the dashboard selection menu.

  • Apps Dashboard
  • BGS - Machine Monitoring
  • Machine Watchlist
  • Monitor Information

Default Reports

To locate your reports, select REPORTS from the top menu bar.

  • Automate - Monitor Report
  • ConnectWise Automate Executive Summary Report
  • Machine Health Report - Client
  • Overall Health Report - Internal

If you have any questions, please contact Support by selecting Help > Open a Ticket from the top menu bar.

Was this article helpful?
18 out of 26 found this helpful