说说一个困扰自已两天的问题。
首先是用常规的方法安装上了mysql数据库。做了主从。
在监控从库的时候,发现所有的监控数据库的监控项都获取不到key值 。
zabbix server端也不报错。获取到的值为空的。在zabbix agent和zabbix server都看不到明显的报错。数据库错误日志没也有任何信息。
空想冥思了两天。
最后排除方法如下:
1.首先在zabbix server端要么是空值,要么是sock连上的。
[root@zabbix ~]# zabbix_get -s 10.0.0.52 -k "MySQL.running-slave"
[root@zabbix ~]# tailf /var/log/zabbix/zabbix_server.log
19203:20171220:102048.643 cannot link template(s) "Template OS Linux active", "Template TCP Connection Status Active" to host "lb01": conflicting item key "kernel.maxfiles" found
19203:20171220:102120.668 cannot link template(s) "Template OS Linux active", "Template TCP Connection Status Active" to host "web01_pop": conflicting item key "kernel.maxfiles" found
19203:20171220:102120.679 cannot link template(s) "Template