zabbix監控告警Received empty response from Zabbix Agent Assuming that agent dropped connection

昨天想監控下tomcat,在網上找到,配置好後,重啓了下Server,而後告警就來了
tomcat

Received empty response from Zabbix Agent at [192.168.2.203]. Assuming that agent dropped connectionide

全是這種,還不是端口錯誤。spa

搞了很久,最後仍是看日誌搞定的。日誌


日誌裏有這樣server

30305:20170426:123707.943 failed to accept an incoming connection: connection from "192.168.2.199" rejected, allowed hosts: "127.0.0.1"ip

7084:20170425:181648.923 failed to accept an incoming connection: connection from "111.?.?.8" rejected, allowed hosts: "111.?.?.2"it


我分析,公網的這些失敗是出口有多個ip,而我只寫了一個111.?.?.2,那它如今就從111.?.?.8出去,因此會報錯,增長新ip後,重啓agent,成功。io


可是第一個127.0.0.1的,我一直沒變過,也報錯了,這個就不太清楚了,最後在配置文件和前臺都改了server的ip爲192.168.2.199後,才成功。class


若有知道爲何的,麻煩告知下,謝謝了。監控