跳转至

Error setting up syslog

启动agent的时候出现下面的报错:

[root@S-C7 conf.d]# /etc/init.d/CiAgent restart
Stopping Cloud Insight Agent (using killproc on supervisord): [ OK ] Error setting up syslog: '[Errno 13] Permission denied' Traceback (most recent call last): File "/opt/CiAgent/agent/config.py", line 1004, in initialize_logging handler = SysLogHandler(address=sys_log_addr, facility=SysLogHandler.LOG_DAEMON) File "/opt/CiAgent/embedded/lib/python2.7/logging/handlers.py", line 761, in __init__ self._connect_unixsocket(address) File "/opt/CiAgent/embedded/lib/python2.7/logging/handlers.py", line 789, in _connect_unixsocket self.socket.connect(address) File "/opt/CiAgent/embedded/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) error: [Errno 13] Permission denied

此为 syslog 文件找不到,修改 /etc/CiAgent/CiAgent.conf 里面 log_to_syslog 设置为 no ,重启探针即可,参考探针常用操作


5分钟,开启你的跨云监控之旅 (`⌄´ )