Nagios不稳定,检测的服务都是好的,但是有时会发警报信息。看了下详细日志,如下所示:
[03-19-2012 17:37:40] SERVICE NOTIFICATION: nagiosadmin;realhost2;Uptime;CRITICAL;notify-service-by-email;CRITICAL - Socket timeout after 10 seconds
[03-19-2012 17:37:40] SERVICE ALERT: realhost2;Uptime;CRITICAL;HARD;3;CRITICAL - Socket timeout after 10 seconds
[03-19-2012 17:36:40] SERVICE NOTIFICATION: nagiosadmin;realhost2;NSClient++ Version;CRITICAL;notify-service-by-email;CRITICAL - Socket timeout after 10 seconds
[03-19-2012 17:36:40] SERVICE ALERT: realhost2;NSClient++ Version;CRITICAL;HARD;3;CRITICAL - Socket timeout after 10 seconds
[03-19-2012 17:35:40] SERVICE ALERT: realhost2;Uptime;CRITICAL;SOFT;2;CRITICAL - Socket timeout after 10 seconds
[03-19-2012 17:35:40] SERVICE NOTIFICATION: nagiosadmin;realhost2;Memory Usage;CRITICAL;notify-service-by-email;CRITICAL - Socket timeout after 10 seconds
[03-19-2012 17:35:40] SERVICE ALERT: realhost2;Memory Usage;CRITICAL;HARD;3;CRITICAL - Socket timeout after 10 seconds
[03-19-2012 17:34:40] SERVICE ALERT: realhost2;NSClient++ Version;CRITICAL;SOFT;2;CRITICAL - Socket timeout after 10 seconds
[03-19-2012 17:33:40] SERVICE ALERT: realhost2;Uptime;CRITICAL;SOFT;1;CRITICAL - Socket timeout after 10 seconds
[03-19-2012 17:33:40] SERVICE ALERT: realhost2;Memory Usage;CRITICAL;SOFT;2;CRITICAL - Socket timeout after 10 seconds
[03-19-2012 17:32:40] SERVICE ALERT: realhost2;NSClient++ Version;CRITICAL;SOFT;1;CRITICAL - Socket timeout after 10 seconds
[03-19-2012 17:31:40] SERVICE ALERT: realhost2;Memory Usage;CRITICAL;SOFT;1;CRITICAL - Socket timeout after 10 seconds
以上信息说明都是“Socket timeout after 10 seconds”这个原因造成的,如何解决呢?