Overview
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:
- Install the BrightGauge agent on a computer on the same network as your MySQL server. Please refer to Using the BrightGauge Agent for instructions.
- Create a user in your MySQL Automate database.
- Connect to Automate from BrightGauge.
Create a MySQL User (Pre Automate 2021.1)
To create a MySQL user:
- From the databse server, open SQLyog.
- Select User Manager.
- Click Add New User.
- Enter a Username and a Password.
- Click Create.
- Select the checkbox for the SELECT permission.
- 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
Recommendation
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:
- Connect to the MySQL database as a user with root access.
- Create a new MySQL user and add any necessary privileges or permissions.
- Save the user.
- 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.
- 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
Note: User table entries that are negative values cannot be used to log in to Automate. Automate removes any MySQL users that are not in the User table or managed by Automate.
MySQL Resources
The following documentation links for creating MySQL users and inserting data into tables have been provided for your reference.
- MySQL 5.7 Reference Manual: Adding Accounts, Assigning Privileges, and Dropping Accounts
- MySQL 5.7 Reference Manual: INSERT Statement
- BrightGauge Documentation: Add a User in SQLyog
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:
- Log in to your BrightGauge account.
- Navigate to DATA > Datasources.
- Select Add a New Datasource.
- Select RMM.
- Select ConnectWise Automate On-Premise.
- 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, 192.168.1.2\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. - Click Test Connection. If the connection is unsuccessful, ensure that all fields are correct.
- 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.
Comments
0 comments