What Can I Do If No Monitoring Data Is Displayed After One-Click Agent Restoration? (Old Agent)
Symptom
The Agent is running normally after being restored, but no monitoring data is generated.
Possible Causes
If no OS monitoring data is available for an ECS or BMS with the Agent installed, the possible causes are as follows:
- There is a problem with the Agent process.
- There is a problem with agency configurations.
- Temporary AK/SK cannot be obtained due to incorrect route configurations.
- The network is not well connected.
Check the Agent version.
- Log in to an ECS as user root.
- Check the Agent version.
if [[ -f /usr/local/uniagent/extension/install/telescope/bin/telescope ]]; then /usr/local/uniagent/extension/install/telescope/bin/telescope -v; elif [[ -f /usr/local/telescope/bin/telescope ]]; then echo "old agent"; else echo 0; fi
- If old agent is displayed, the early version of the Agent is used.
- If a version ID is returned, the new version of the Agent is used.
- If 0 is returned, the Agent is not installed.
Procedure (Linux)
- Log in to the ECS or BMS as user root.
- Check whether the Agent process is running.
The following information indicates that the Agent process is normal.
Figure 1 Viewing the telescope processes - Start the Agent.
- Check whether an agency has been created for the server.
curl http://169.254.169.254/openstack/latest/securitykey
- If data is returned, the agency is normal and AK/SK can be obtained. No further action is required.
- If the request fails or the following information is displayed, go to 5.
Figure 2 Failing to obtain the AK/SK
- On the Cloud Eye console, choose Server Monitoring > Elastic Cloud Server, select the target ECS, and click Restore Agent Configurations.
- If the problem is resolved, no further action is required.
- Otherwise, go to 6.
- Check the route.
The following information indicates that the route is normal.
Figure 3 Normal route configuration-Linux- If the route is normal, no further action is required.
- Otherwise, go to 7.
- If the route does not exist, run the following command to add a route:
route add -host 169.254.169.254 gw 192.168.0.1
Replace 192.168.0.1 in the example command with the gateway of the server.
Check whether monitoring data can be reported normally.
- If yes, no further action is required.
- If no, go to 8.
- Open the Agent configuration file.
- Obtain the endpoint from the Agent configuration file.
Figure 4 Querying the Agent endpoint
- Check whether the DNS settings are normal.
ping ces.cn-south-1.myhuaweicloud.com
- If yes, no further action is required.
- If no, modify the DNS server address or the Cloud Eye endpoint.
Procedure (Windows)
- Log in to the ECS or BMS as an administrator.
- Open the Task Manager and check whether the Agent process is running.
If there are Figure 5 and Figure 6, the Agent process is running.
- Double-click start.bat to start the Agent.
- Access http://169.254.169.254/openstack/latest/meta_data.json and check whether the agency has been created.
- If the website is accessible, the agency is normal. No further action is required.
- Otherwise, go to 6.
- Check the route.
The following information indicates that the route is normal.
Figure 7 Normal route configuration-Windows- If the route is normal, no further action is required.
- Otherwise, go to 7.
- If the route does not exist, run the following command to add a route:
route add -host 169.254.169.254 gw 192.168.0.1
Replace 192.168.0.1 in the example command with the gateway of the server.
Check whether monitoring data can be reported normally.
- If yes, no further action is required.
- If no, go to 7.
- Open the configuration file in bin/conf_ces.json in the directory where the Agent installation package is stored.
- Obtain the endpoint from the Agent configuration file.
- Check whether the DNS settings are normal.
ping ces.cn-north-4.myhuaweicloud.com
- If yes, no further action is required.
- If no, modify the DNS server address or the Cloud Eye endpoint.
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot