tencent cloud

Tencent Cloud Observability Platform

Release Notes and Announcements
Release Notes
Product Introduction
Overview
Strengths
Basic Features
Basic Concepts
Use Cases
Use Limits
Purchase Guide
Tencent Cloud Product Monitoring
Application Performance Management
Mobile App Performance Monitoring
Real User Monitoring
Cloud Automated Testing
Prometheus Monitoring
Grafana
EventBridge
PTS
Quick Start
Monitoring Overview
Instance Group
Tencent Cloud Product Monitoring
Application Performance Management
Real User Monitoring
Cloud Automated Testing
Performance Testing Service
Prometheus Getting Started
Grafana
Dashboard Creation
EventBridge
Alarm Service
Cloud Product Monitoring
Tencent Cloud Service Metrics
Operation Guide
CVM Agents
Cloud Product Monitoring Integration with Grafana
Troubleshooting
Practical Tutorial
Application Performance Management
Product Introduction
Access Guide
Operation Guide
Practical Tutorial
Parameter Information
FAQs
Mobile App Performance Monitoring
Overview
Operation Guide
Access Guide
Practical Tutorial
Tencent Cloud Real User Monitoring
Product Introduction
Operation Guide
Connection Guide
FAQs
Cloud Automated Testing
Product Introduction
Operation Guide
FAQs
Performance Testing Service
Overview
Operation Guide
Practice Tutorial
JavaScript API List
FAQs
Prometheus Monitoring
Product Introduction
Access Guide
Operation Guide
Practical Tutorial
Terraform
FAQs
Grafana
Product Introduction
Operation Guide
Guide on Grafana Common Features
FAQs
Dashboard
Overview
Operation Guide
Alarm Management
Console Operation Guide
Troubleshooting
FAQs
EventBridge
Product Introduction
Operation Guide
Practical Tutorial
FAQs
Report Management
FAQs
General
Alarm Service
Concepts
Monitoring Charts
CVM Agents
Dynamic Alarm Threshold
CM Connection to Grafana
Documentation Guide
Related Agreements
Application Performance Management Service Level Agreement
APM Privacy Policy
APM Data Processing And Security Agreement
RUM Service Level Agreement
Mobile Performance Monitoring Service Level Agreement
Cloud Automated Testing Service Level Agreement
Prometheus Service Level Agreement
TCMG Service Level Agreements
PTS Service Level Agreement
PTS Use Limits
Cloud Monitor Service Level Agreement
API Documentation
History
Introduction
API Category
Making API Requests
Monitoring Data Query APIs
Alarm APIs
Legacy Alert APIs
Notification Template APIs
TMP APIs
Grafana Service APIs
Event Center APIs
TencentCloud Managed Service for Prometheus APIs
Monitoring APIs
Data Types
Error Codes
Glossary

Uninstalling, Restarting, and Stopping CVM Agents

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2025-10-27 18:03:32
This document describes how to uninstall, restart, and stop CVM Agents.

Overview

CVM Agents include Sgagent and BaradAgent. Sgagent reports component information update and triggers BaradAgent, and BaradAgent reports CVM metric data.

Directions

The procedures for Linux and Windows are different. You can refer to the following directions as needed.
Linux
Windows

Uninstalling Agents

Step 1. Uninstall BaradAgent

1. Log in to the CVM instance and run the following command to go to the installation directory of BaradAgent:
cd /usr/local/qcloud/monitor/barad/admin
2. Run the following command to uninstall BaradAgent. Note that this command does not output the result. If the /usr/local/qcloud/monitor/barad folder does not exist, BaradAgent has been uninstalled successfully.
./uninstall.sh
Note:
BaradAgent reports some of the CVM metric data. Once uninstalled, BaradAgent stops reporting data. Sgagent consumes just a little memory. If you need to uninstall Sgagent, refer to the following directions.

Step 2. Uninstall Sgagent

1. Run the following command to go to the installation directory of Sgagent:
cd /usr/local/qcloud/stargate/admin
2. Run the following command to uninstall Sgagent. This command does not output the result. You can run the crontab -l |grep stargate command to check whether there is any scheduled task. If not, Sgagent has been uninstalled successfully.
./uninstall.sh

Restarting Agents

Step 1. Restart BaradAgent

1. Run the following command to go to the installation directory of BaradAgent:
cd /usr/local/qcloud/monitor/barad/admin
2. Run the following command to restart BaradAgent. If barad_agent run succ is displayed, BaradAgent has been restarted successfully.
./stop.sh
./trystart.sh

Step 2. Restart Sgagent

1. Run the following command to go to the installation directory of Sgagent:
cd /usr/local/qcloud/stargate/admin
2. Run the following command to restart Sgagent. If stargate agent run succ is displayed, Sgagent has been restarted successfully.
./restart.sh

Stopping Agents

Note:
The report of CVM metric data will only be stopped unless both Sgagent and BaradAgent are stopped. You can Stop BaradAgent to suspend data report for a while. However, BaradAgent will resume data report in one minute as it will be triggered by Sgagent. Therefore, to stop data report, stop both Sgagent and BaradAgent in sequence by referring to the following directions:
1. Run the following command to delete the scheduling Sgagent files:
rm -f /etc/cron.d/sgagenttask
2. Run the following command to enter the crontab file:
crontab -e
3. Press i to switch to the editing mode to delete the file information. After it is deleted, press Esc and enter :wq to save the file and exit.


4. Stop Sgagent.
4.1 Run the following command to go to the installation directory of Sgagent:
cd /usr/local/qcloud/stargate/admin
4.2 Run the following command to stop Sgagent:
./stop.sh
5. Stop BaradAgent.
5.1 Run the following command to go to the installation directory of BaradAgent:
cd /usr/local/qcloud/monitor/barad/admin
5.2 Run the following command to stop BaradAgent:
./stop.sh
Note:
After the command is successfully executed, the service will not be started automatically, and the monitoring data will be lost. To restart the service, both these two Agent services need to be restarted.

Starting, restarting, and stopping BaradAgent and Sgagent

Run services.msc to open the Services Manager to find BaradAgent and Sgagent. Then, right-click a service to start, restart, or stop it.




Uninstalling BaradAgent and Sgagent

Use the following .bat file for uninstallation:
cd "C:\\Program Files\\QCloud\\Stargate\\admin"
uninstall.bat
cd "C:\\Program Files\\QCloud\\Monitor\\Barad\\admin"
uninstall.bat


Ajuda e Suporte

Esta página foi útil?

comentários