zabbix 分布式部署问题,
zabbix server proxy agent 配置文件配置完毕后 如下:
zabbix server
[root@transcoder zabbix]# grep -vP '#|^$' zabbix_server.conf
PidFile=/var/run/zabbix/zabbix.pid
DBSocket=/var/lib/mysql/mysql.sock
LogFile=/tmp/zabbix_server.log
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBPort=3306
ProxyConfigFrequency=60
ProxyDataFrequency=60
proxy :
[root@qhd zabbix]# grep -vP '#|^$' zabbix_proxy.conf
ProxyMode=0
Server=106.2.186.54
ServerPort=10051
Hostname=qhd.proxy
LogFile=/var/log/zabbix/zabbix_proxy.log
PidFile=/var/run/zabbix/zabbix_proxy.pid
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBSocket=/var/lib/mysql/mysql.sock
DBPort=3306
DBPassword=123456
ConfigFrequency=60
DataSenderFrequency=60
agent :
[root@ssserver zabbix]# cat /etc/zabbix/zabbix_agentd.conf |grep -vE '^$|^#'
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
Server=10.32.5.10
ListenPort=10050
ServerActive=10.32.5.10
Hostname=ssserver
Include=/etc/zabbix/zabbix_agentd.d/
然后 在server端 添加主机 查看主机迟迟得不到消息 查看server zabbix proxy 和agent log 报了一些问题:
server日志:
[root@transcoder zabbix]# tail -f /tmp/zabbix_server.log
26100:20150818:162155.262 sending configuration data to proxy "qhd.proxy", datalen 7876
26104:20150818:162255.395 sending configuration data to proxy "qhd.proxy", datalen 7876
26105:20150818:162355.539 sending configuration data to proxy "qhd.proxy", datalen 7876
26105:20150818:162455.669 sending configuration data to proxy "qhd.proxy", datalen 7876
26102:20150818:162555.804 sending configuration data to proxy "qhd.proxy", datalen 7876
26104:20150818:162655.928 sending configuration data to proxy "qhd.proxy", datalen 7876
26105:20150818:162756.097 sending configuration data to proxy "qhd.proxy", datalen 7876
26105:20150818:162856.224 sending configuration data to proxy "qhd.proxy", datalen 7876
26105:20150818:162956.351 sending configuration data to proxy "qhd.proxy", datalen 7876
26105:20150818:163056.482 sending configuration data to proxy "qhd.proxy", datalen 7876
proxy 日志
[root@qhd zabbix]# tail -f /var/log/zabbix/zabbix_proxy.log
20562:20150818:162907.563 received configuration data from server, datalen 7876
20562:20150818:162907.585 failed to update local proxy configuration copy: invalid field name "items.filter"
20574:20150818:162910.322 cannot send list of active checks to [10.32.5.108]: host [ssserver] not found
20562:20150818:163007.698 received configuration data from server, datalen 7876
20562:20150818:163007.722 failed to update local proxy configuration copy: invalid field name "items.filter"
20562:20150818:163107.829 received configuration data from server, datalen 7876
20562:20150818:163107.853 failed to update local proxy configuration copy: invalid field name "items.filter"
20574:20150818:163110.491 cannot send list of active checks to [10.32.5.108]: host [ssserver] not found
20562:20150818:163207.983 received configuration data from server, datalen 7876
20562:20150818:163208.002 failed to update local proxy configuration copy: invalid field name "items.filter"
20562:20150818:163308.115 received configuration data from server, datalen 7876
20562:20150818:163308.139 failed to update local proxy configuration copy: invalid field name "items.filter"
20574:20150818:163310.673 cannot send list of active checks to [10.32.5.108]: host [ssserver] not found
agent日志:
[root@ssserver zabbix]# tail -f /var/log/zabbix/zabbix_agentd.log
32756:20150818:162109.750 no active checks on server [10.32.5.10:10051]: host [ssserver] not found
32756:20150818:162309.910 no active checks on server [10.32.5.10:10051]: host [ssserver] not found
32756:20150818:162510.078 no active checks on server [10.32.5.10:10051]: host [ssserver] not found
32756:20150818:162710.261 no active checks on server [10.32.5.10:10051]: host [ssserver] not found
32756:20150818:162910.421 no active checks on server [10.32.5.10:10051]: host [ssserver] not found
32756:20150818:163110.590 no active checks on server [10.32.5.10:10051]: host [ssserver] not found
32756:20150818:163310.773 no active checks on server [10.32.5.10:10051]: host [ssserver] not found
32756:20150818:163513.784 active check configuration update from [10.32.5.10:10051] started to fail (ZBX_TCP_READ() failed: [4] Interrupted system call)
32756:20150818:163613.955 active check configuration update from [10.32.5.10:10051] is working again
32756:20150818:163613.955 no active checks on server [10.32.5.10:10051]: host [ssserver] not found
求帮忙看看 是哪里出现的问题,怎么解决?