你好,我在命令行使用如下:
[root@s1 scripts]# python mysql_all.py -k threads_connected
1
在zabbix_get下无返回:
[root@jn53 bin]# ./zabbix_get -s 163.com -p 10050 -k "mysql.item[threads_connected]"
tmp下面的log以及txt已经全部777权限,zabbix_get调用报错如下:
[2018-05-17 16:18:01] INFO
msg: Try To Get From Cache File: /tmp/.zabbix_mysql_variables_slave_status_3306_by_zabbix.txt
key: threads_connected
value: None
[2018-05-17 16:18:01] ERROR
Traceback (most recent call last):
File "/etc/zabbix/scripts/mysql_all.py", line 47, in get_mysql_cmd_output
if os.path.isfile(p):
File "/usr/lib64/python2.7/genericpath.py", line 29, in isfile
st = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found
[2018-05-17 16:18:01] ERROR
Traceback (most r