經曆1 我在為一個主機建立了兩個item之後,卻發現一個有lastst data一個卻有沒有?這讓我費盡腦子去想!
後來我以為是zabbix慢導緻,過一天就會出現,可以到了第二天仍然沒有現在lastst data清單中
後來結論是 key始終沒有擷取資料,一直在執行當中:
驗證:
zabbix_get -s hostip -k net.tcp.port[desip,80]
經曆2 定義了一個item之後也沒有在lastst data清單中
後來檢視create item的配置和 官網對比
發現了
Update interval (in sec) 這個選項,且我定義為了0
對照官網解釋:
Retrieve a new value for this item every N seconds.
Note: If set to '0', the item will not be polled. However, if a custom interval (flexible/scheduling) also exists with a non-zero value, the item will be polled during the custom interval duration.
後來我把 interval 調成60 後就出現了
總結:
有 item但是last date中沒有資料的原因:
原因1: -s 沒資料
原因2: create item 方式不對
本文轉自殘劍部落格51CTO部落格,原文連結http://blog.51cto.com/cuidehua/1768180如需轉載請自行聯系原作者
cuizhiliang