N O T I C E
MSPbots WIKI is moving to a new home at support.mspbots.ai to give you the best experience in browsing our Knowledge Base resources and addressing your concerns. Click here for more info!
N O T I C E
MSPbots WIKI is moving to a new home at support.mspbots.ai to give you the best experience in browsing our Knowledge Base resources and addressing your concerns. Click here for more info!
This guide will help you do the following steps for connecting the MSPbots SQL agent:
Complete the prerequisites.
The following is required to connect the agent:
Internal IP of the SQL Server
To get the internal IP:
- Launch the Control Panel and open Network and Sharing Center.
Go back to Integrations and click the Add Connector - On the Network and Sharing Center, click your Connection.
- When the Wi-Fi Status window appears, click the Properties button.
- Take note of your IPv4 Address.
- Launch the Control Panel and open Network and Sharing Center.
db_datareader permissions
- Open your SQL server and select db_datareader permissions for MSPbots.
Giving any account full DB access is not recommended.
- Click OK.
- Open your SQL server and select db_datareader permissions for MSPbots.
Connect the MSPbots agent.
- Go to Integrations on the MSPbots app menu.
- Find the SQL Agent and click the Config icon.
- Next, click the download icon for the MSPbots SQL Agent Client to start downloading the installer file.
- Locate and double-click on the downloaded installer.
- During the setup, select Automatic start and Create a desktop shortcut, then click Next.
- Follow the prompts. In the last step, tick the Launch MSPbotsAgentService checkbox and click Finish. The window will automatically close when the service starts.
- Launch the MSPbots agent and log in using your MSPbots account. You can Minimize or Close the window after login but do not log out.
Set up the MSPbots Agent Connector.
- Go back to Integrations and click the Add Connector button.
Last success auth shows the last time when the MSPbots Agent successfully pulled the database configuration information. By default, this process is set to occur every 5 minutes.
- Fill in all of the following required fields. It may take a few moments for the agent to check in after installation.
A. Database Type - Select either SQL Server or MySQL.
B. Agent - The agent will auto-populate with the machine name you installed.
C. IP - Provide the internal IP address or FQDN of the SQL or MySQL server.
D. Database Name
E. Time Zone - Select the time zone used by the connected database.
F. User ID - This is the username of the user with read-only access to the database.
G. Password - This is the password of the user with read-only access to the database.If you have installed multiple MSPbots agents with databases in different network segments, you need to select the device name where the MSPbots Agent is installed. The agent is found under the corresponding gateway of the database in the Agent selection box.
- Click Save And Sync.
- Go back to Integrations and click the Add Connector button.
Create a dataset and validate the data.
- Go to Datasets on the MSPbots app menu and click the New Agent Dataset button.
When the New window appears, click Integration and select SQL Agent. Don't forget to fill in dataset Name and Description fields.
- Next, go to the Data Cleaning tab to show the Validate SQL section below. Select a database from the DB dropdown list.
The most common SQL statement to use here is “select * from TABLENAME”.
- Scroll down to the Validate SQL section, fill in the SQL field, and input your desired Sync Frequency in minutes.
Sync Frequency is currently limited to 30 minutes and can only be decreased for smaller datasets. For larger datasets, the frequency may be limited due to a large amount of data ingestion and the constraint it would place on both your server and ours. - Click Confirm when done. This will show a preview of the data for your validation. You can customize or use the default character length for string-type fields.
- Once you confirm the data is correct, click OK to create and save the dataset. The data will be synchronized in 10 minutes.
- Go to Datasets on the MSPbots app menu and click the New Agent Dataset button.
Save the logs and send the file to MSPbots Support Team.
- Open the MSPbots Agent client and click the Save Log button on the upper right corner of the window.
- Click Confirm on the Tips popup that appears.
- Next, select the location to save the logs, provide a filename, and click Save.
- Send the file to support@mspbots.ai.