Help Center/
Database Security Service/
FAQs/
Agent/
What Do I Do If the Communication Between the Agent and Database Audit Instance Is Abnormal?
Updated on 2024-04-16 GMT+08:00
What Do I Do If the Communication Between the Agent and Database Audit Instance Is Abnormal?
Symptom
An agent has been installed on the database or application, but the SQL statement is not displayed in the SQL statement list after you enter an SQL statement in the database.
Perform the following operations to troubleshoot the problem:
Checking the Audited Database
- Log in to the management console.
- Select a region, click , and choose . The Dashboard page is displayed.
- In the navigation tree on the left, choose Databases.
- In the Instance drop-down list, select the instance whose database is to be checked.
- Check the information about the database to be audited.
- Check the audit status of the database to be audited.
- If Audit Status is Enabled, go to Checking the Security Group Rules of the Database Audit Instance.
- If Audit Status is Disabled, click Enable to enable the database audit function.
- If the fault is rectified, no further operation is required.
- If the problem persists, go to Checking the Security Group Rules of the Database Audit Instance.
Checking the Security Group Rules of the Database Audit Instance
- Click next to the database to expand the details about the agent and record the value of Installing Node IP Address.
- Click Add Security Group Rule.
- In the displayed dialog box, record the security group name (for example, default) of the database audit instance, as shown in Figure 1.
- Click Go to VPC.
- In the security group list, enter the group name default in the search box in the upper right corner of the list, and click or press Enter. The group information is displayed in the list.
- Click the name of the security group default. Click the Inbound Rules tab.
- Check inbound rules of the security group default.
Check whether TCP (port number 8000) and UDP protocols (port number from 7000 to 7100) are configured in the inbound rules of the security group for the IP address of the installing node in 1.
- If inbound rules have been configured for the security group, go to Check the running status of the agent on the installing node..
- If no inbound rule is configured for the security group, go to 8.
- Add inbound rules for the security group of the database audit instance.
- Click Add Rule.
- In the Add Inbound Rule dialog box, add TCP (port number 8000) and UDP protocols (port number from 7000 to 7100) for the installing node IP address in 1.
- Click OK.
- If the fault is rectified, no further operation is required.
- If the problem persists, go to Check the running status of the agent on the installing node..
Check the running status of the agent on the installing node.
- Linux OS
- Log in to the node where the agent is installed as user root using SSH through a cross-platform remote access tool (such as PuTTY).
- Run the following command to view the running status of the agent:
- If the following information is displayed, the agent is running properly. Go to Verifying the Result.
1
audit agent is running.
- If no information is displayed, the agent is running abnormally. Run the following command to restart the agent:
- If the following information is displayed, the agent is running properly. Go to Verifying the Result.
- Windows OS
- Open the Task Manager.
- Query the status of the dbss_audit_agent process.
- If the process is running, go to Verifying the Result.
- If the process is stopped, go to the directory where the agent installation file is stored, and double-click the start.bat file to start the audit process.
Verifying the Result
In your database, run an SQL statement on the node where the agent is installed. Choose Overview > Statements and then search for the executed statement.
- If the SQL statement is found, the problem has been solved.
- If the SQL statement is not found, the problem persists. Contact customer service.
Parent topic: Agent
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot