Server=10.81.31.94
ServerActive=10.81.31.94
Hostname=zk1
BufferSize=10240
DebugLevel=2
LogFileSize=1024
EnableRemoteCommands=1
LogFile=/tmp/zabbix_agentd.log
#Include=/usr/local/zabbix_agent/etc/zabbix_agentd.conf.d/
UserParameter=zookeeper.status[*],/usr/bin/python /usr/local/zabbix_agent/scripts/check_zookeeper.py $1
監控 zk,配置了很久:
錯誤原因:
1、ServerActive=10.81.31.94 此配置未配置,導致 zabbix_sender 發送失敗,通過執行zabbix_sender發現錯誤
2、Hostname 未設置,zabbix server端 zabbix trapper找不到 地址
歡迎打算使用阿里雲服務器的小夥伴,加我私聊!!QQ:3533470970 或直接領取阿里雲幸運券:https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=b6h928qb&utm_source=b6h928qb