标签:pack password word base ges roo user serve selinux
1.zabbix_getzabbix_get -s 172.16.1.46 -p 10050 -k "service_nums"
error: cannot open Packages index using db5 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/etc/zabbix/bin/service_nums.py", line 37, in <module>
con = connect(‘172.16.1.232‘, ‘root‘, ‘xx‘, ‘cmdb‘)
File "/etc/zabbix/bin/service_nums.py", line 11, in connect
con = mdb.connect(ip,user,password,database)
File "/usr/lib64/python2.7/site-packages/MySQLdb/init.py", line 81, in Connect
return Connection(*args, *kwargs)
File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 193, in init
super(Connection, self).init(args, **kwargs2)
_mysql_exceptions.OperationalError: (2003, "Can‘t connect to MySQL server on ‘172.16.1.232‘ (13)")
原因为selinux,setenforce 0
标签:pack password word base ges roo user serve selinux
原文地址:http://blog.51cto.com/szgb17/2313387