昨天想監控下tomcat,在網上找到,配置好後,重啓了下Server,然後告警就來了
Received empty response from Zabbix Agent at [192.168.2.203]. Assuming that agent dropped connection
全是這種,還不是端口錯誤。
搞了好久,最後還是看日誌搞定的。
日誌裏有這樣
30305:20170426:123707.943 failed to accept an incoming connection: connection from "192.168.2.199" rejected, allowed hosts: "127.0.0.1"
7084:20170425:181648.923 failed to accept an incoming connection: connection from "111.?.?.8" rejected, allowed hosts: "111.?.?.2"
我分析,公網的這些失敗是出口有多個ip,而我只寫了一個111.?.?.2,那它現在就從111.?.?.8出去,所以會報錯,增加新ip後,重啓agent,成功。
但是第一個127.0.0.1的,我一直沒變過,也報錯了,這個就不太清楚了,最後在配置文件和前臺都改了server的ip爲192.168.2.199後,才成功。
如有知道爲什麼的,麻煩告知下,謝謝了。