Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zabbix无法获取从库信息 #19

Closed
jalenye opened this issue Sep 21, 2017 · 1 comment
Closed

Zabbix无法获取从库信息 #19

jalenye opened this issue Sep 21, 2017 · 1 comment

Comments

@jalenye
Copy link

jalenye commented Sep 21, 2017

系统Ubuntu 14,python 2.7.
主库正常。从库在服务器上面手动执行脚本能拿到数据。但是在zabbix显示
Value "Traceback (most recent call last):
File "/usr/lib/python2.7/logging/handlers.py", line 77, in emit
self.doRollover()
File "/usr/lib/python2.7/logging/handlers.py", line 142, in doRollover
os.rename(self.baseFilename, dfn)
OSError: [Errno 1] Operation not permitted
Logged from file slog.py, line 132
15425489" of type "string" is not suitable for value type "Numeric (unsigned)"
image

@qiueer
Copy link
Owner

qiueer commented Sep 23, 2017

这个报错是日志权限的问题,你可能是在root用户下手动执行命令抓取数据,改下权限就可以了

chmod 777 /tmp/.zabbix_*.{log,txt}
chmod 777 /tmp/zabbix_*.{txt,log}

@jalenye jalenye closed this as completed Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants