3. 配置客户端通行证
#192.168.188.34 #首先在client-active修改主机名 sed -i 's/HOSTNAME=.*/HOSTNAME=client-pass/' /etc/sysconfig/network hostname client-pass yum install zabbix-agent -y sed -i 's/Server=.*/Server=192.168.188.32/' /etc/zabbix/zabbix_agentd.conf #这里的ServerIP要填写oroxy-active的 sed -i 's/ServerActive=.*/ServerActive=192.168.188.32/' /etc/zabbix/zabbix_agentd.conf #这里的ServerIP是用于Agent(主动)模式的. sed -i 's/^Hostname=\(.*\)/#Hostname=\1/' /etc/zabbix/zabbix_agentd.conf #将默认静态的主机名注释 sed -i 's/.*HostnameItem=\(.*\)/HostnameItem=\1/' /etc/zabbix/zabbix_agentd.conf #使用内部key来获取动态的主机名 /etc/init.d/zabbix-agent start chkconfig zabbix-agent on
4. 在服务器Web上配置.
在创建新代理时,请将代理模式更改为被动,然后添加被动代理的IP

创建一个新主机并使用您刚创建的代理进行收集.

5. 查看代理日志
在日志的最后一行,您可以看到已经成功收集了客户端密码. “无法将活动支票列表发送到”不是错误. 座席(活动中)稍后会讲话.
[root@localhost create]# tail -f /var/log/zabbix/zabbix_proxy.log 1944:20141130:154643.633 cannot send list of active checks to [192.168.188.34]: host [client-pass] not found 1946:20141130:154827.798 received configuration data from server, datalen 2588 1943:20141130:154844.084 cannot send list of active checks to [192.168.188.34]: host [client-pass] not found 1942:20141130:155044.404 cannot send list of active checks to [192.168.188.34]: host [client-pass] not found 1945:20141130:155243.827 cannot send list of active checks to [192.168.188.34]: host [client-pass] not found 1942:20141130:155449.152 cannot send list of active checks to [192.168.188.34]: host [client-pass] not found 1945:20141130:155557.355 cannot send list of active checks to [192.168.188.34]: host [client-pass] not found 1945:20141130:155649.490 cannot send list of active checks to [192.168.188.34]: host [client-pass] not found 1944:20141130:155829.609 received configuration data from server, datalen 7324 1937:20141130:155835.557 enabling Zabbix agent checks on host "client-pass": host became available
6. 服务器检查状态.
您可以看到这两个主机是由不同的代理收集的,并且都可用.

检查代理的状态〜
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-157376-2.html
刚好点而已