在目标云主机中执行以下命令:
systemctl status lmtagent
-
若无返回,则代表当前云主机未安装采集器,请参考采集器安装。
-
返回如下内容,表示当前采集器为正常运行状态
# systemctl status lmtagent ● lmtagent.service - lmtagent Loaded: loaded (/etc/systemd/system/lmtagent.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2024-05-27 09:06:31 CST; 2h ago Main PID: 1296629 (lmtagent) Tasks: 2 Memory: 7.9M CPU: 9ms CGroup: /system.slice/lmtagent.service └─1296629 /app/cams/lmtagent/lmtagent May 27 09:06:31 zhuji03 systemd[1]: Started lmtagent.
-
返回如下内容,表示当前采集器为异常状态:
# systemctl status lmtagent ● lmtagent.service - lmtagent Loaded: loaded (/etc/systemd/system/lmtagent.service; enabled; vendor preset: disabled) Active: activating (auto-restart) (Result: core-dump) since Mon 2024-05-27 09:12:02 CST; 3s ago Process: 1299718 ExecStart=/app/cams/lmtagent/lmtagent (code=dumped, signal=SEGV) Main PID: 1299718 (code=dumped, signal=SEGV) CPU: 444ms
异常状态下,请执行以下命令进行采集器重装,重装后重试检查运行状态。若检查状态一直处于异常,请提交工单反馈。
systemctl restart lmtagent