前言:
好久沒接觸zabbix相關的東西了,恰逢公司項目調整,回顧了一把zabbix,中途遇見了zabbix-agent可用狀態為灰色的問題,記錄一下,供后面同學參考。
環境:
zabbix 5.0 + zabbix-agent 5.0
解決思路:
Availability 一共三種顏色對應三種狀態【官網解釋】:
Green - available
Red - not available (upon mouseover, details of why the interface cannot be reached are displayed)
Gray - unknown or not configured
1. 如果是綠色,沒的說,代表正常的,健康的;
2. 如果是紅色,代表錯誤,解決思路就是移動鼠標到紅色 ZBX 上,會自動提示錯誤信息,根據錯誤提示尋找原因即可;
3. 如果是灰色,代表Unknown, 容易令人茫然...
① 檢查 /etc/zabbix/zabbix_agentd.conf 中的 Hostname 字段值是否與zabbix頁面中的配置對應主機地方中的 Host name 的值是否一致(要一致);
② 檢查是否給要監控的主機添加了監控模板或者具體的監控項(要添加);
③ 是否添加了被動監控模板或者被動監控項(需要存在被動監控);
摘自zabbix論壇的一段話:
- Green - You have at least 1 Passive check and connection between Server & Host can be established.
- Red - If you have at least 1 Passive check, but your Server/proxy can't establish the connection with the Host
- Grey - You have only Active checks or there is no checks at all..