更新时间:2022-07-11 GMT+08:00

管理Agent(Linux)

查看、启动、停止、更新和卸载Agent需使用root用户。

查看Agent状态

以root用户登录ECS或BMS,执行以下命令,查看Agent状态。

service telescoped status

当系统返回以下内容,则表示Agent为正常运行状态。

"Active(running)"或"Telescope process is running well." 

启动Agent

执行以下命令,启动Agent。

/usr/local/telescope/telescoped start

重启Agent

执行以下命令,重启Agent。

/usr/local/telescope/telescoped restart

停止Agent

登录ECS或BMS,执行以下命令,停止Agent。

service telescoped stop

如果Telescope安装失败,可能会导致无法正常停止Agent,可通过执行以下命令进一步尝试;

/usr/local/telescope/telescoped stop

卸载Agent

执行以下命令,即可卸载Agent。

/usr/local/telescope/uninstall.sh

用户可手动卸载Agent插件,卸载后云监控服务将不再主动采集ECS或BMS秒级粒度的监控数据。如需再次使用,请参考在ECS/BMS中安装配置Agent(Linux)重新安装。重新安装Agent前,请手动清理之前的Agent安装包。