zabbix服务端测试客户端命令:

zabbix_get -s 192.168.xx.xx -k mysql.status[Uptime]

注:192.168.xx.xx为本人客户端的ip地址

服务端日志信息:

打开/var/log/zabbix/zabbix_server.log文件

20120:20150612:151035.751 item "192.168.xx.xx:mysql.status[Uptime]" became not supported: Received value [sh: /etc/zabbix/scripts/monitor_mysql: Permission denied] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]


解决方法:

打开/etc/selinux/config文件

#SELINUX=enforcing        注释掉

添加SELINUX=disabled

SELINUXTYPE=targeted  注释掉


保存文件

setenforce 0 使配置立即生效

 zabbix_get -s 192.168.xx.xx -k mysql.status[Uptime]

OK,问题解决

作者:儱剑阿攵
转载请注明链接:http://blog.csdn.net/awenluck/article/details/
46504129



Logo

更多推荐