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!
Page History
This guide will help you do the following so you can successfully connect the SQL agent to MSPbots:
Table of Contents |
---|
...
1. Verify if you are using a previous version of SQL Agent.
If you have SQL Agent 3.0 installed, proceed to Step 2. If an older version is installed, uninstall it first with the following steps:
- Go to the Agent installation directory.
- Find the unins000.exe uninstall file and run it.
2. Download and install
...
SQL Agent
...
3.0.
- Go to Integrations on the MSPbots app
and search for - menu.
- Find the SQL Agent and click the Config icon.
On the SQL Agent- Next, click the
Download link to - download icon for the MSPbots SQL Agent Client to start downloading the installer file.
- Run the MSPbots MS-SQL Server Agent as an administrator. The installer will require you to enter the Secret and Data Server in the SQL Agent configuration. Enter the info in the Setup Wizard window and
- Locate and double-click on the downloaded installer.
- During the setup, select Automatic start and Create a desktop shortcut, then click Next.
The MSPbots SQL Agent Client file will be automatically upgraded if an old version is installed. If this is your case, you will see the screen below. Select Automatically close the applications and click Next.
The previous;y installed service will be stopped and the new MSPbots MS-SQL Server Agent will be launched.
A successful installation will show the SQL Agent icon on the Taskbar. The agent will also be added to the Startup menu automatically.
Configure the database information
Note |
---|
These steps apply to both MySQL and SQL Servers. |
- Go back to SQL Agent under Integrations.
- Click the +Add Connector button. This action will show SQL Server // below Data Server.
- Click SQL Server // to show the Database Type section.
- Select MySQL and enter the configuration information.
Click Save And Sync.
Create the SQL Agent Dataset to pull data
- Follow the prompts. In the last step, tick the Launch MSPbotsAgentService checkbox and click Finish. The window will automatically close when the service starts.
3. Set up the MSPbots Agent Client.
- Open the Agent client by double-clicking on the shortcut you created in Step 2e above.
- Log in using your MSPbots account. You can Minimize or Close the window after login but do not log out.
- Go back to Integrations and click the Add Connector button.
- Scroll down to the SQL Server section and select a Database type.
- Configure the following database information:
For SQL Server
The Database IP information configuration rules are:
Default instance + Default port (1433): IP
Default instance + Custom port: IP,XXXX
Default instance + Custom port: IP\ Instance Name,XXXX
For My SQL
The Database uses the default port (3306): IP
The Database uses a custom port number: IP;port=XXXX - After the configuration is complete, click Save And Sync.
- Refresh your browser.
4. Create a dataset and validate the data.
- Go to Datasets on the MSPbots app menu and click
- Refresh your browser and navigate to Datasets on the MSPbots app. On the Datasets tab,
- the New SQL Agent Dataset button.
- the New SQL Agent Dataset button.
- In the SQL field, select the data from your databases. The best practice is to test the SQL in your databases first.
- Provide a description.
- Click the DB field and select your dataset.
- Input your desired Sync Frequency. This setting is in minutes.
Next, click the Data Cleaning tab to enter the data SQL data to be captured.
Click Confirm. This will send a test SQL and a preview of the data.
If the aggregate function is used in SQL, please use the as statement to enable the alias function like this:
Select status ,count(*) as counts from sys_usergroup by statusPlease wait until the data is synced in the next cycle. After sync, you can preview the data on the Dataset tab and use this dataset to create your widgets or bots....
- When the New window appears, fill in the 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.
- Scroll down to the Validate SQL section, fill in the SQL field, and input your desired Sync Frequency in minutes.
- 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.
- When the New window appears, fill in the dataset Name and Description fields.
...
Overview
Content Tools