原文:http://www.weiruoyu.cn/?p=388
报错:
Warning: Contact ' ' service notification command timed out after 30 seconds
[1339432974] Warning: Contact 'test' service notification command '/usr/bin/printf "%b" "***** Nagios *****\n\nNo
tification Type: PROBLEM\n\nService: check-70\nHost: nagios server\nAddress: 192.168.229.173\nState: CRITICAL\n\n
Date/Time: Tue Jun 12 00:42:23 CST 2012\n\nAdditional Info:\n\n拒绝连接\n" | /bin/mail -s "** PROBLEM Service Ale
rt: nagios server/check-70 is CRITICAL **" 1980361594@qq.com' timed out after 30 seconds
这个问题困扰了一个多礼拜,解决思路从邮件,nagios找了好久,光nagios就装了3遍,后来仔细看日志,去网上查报错,发现是超时了,把时间设置成150就可以,就这么简单。日志还是很重要的。
vi /usr/local/nagios/etc/nagios.cfg
修改为:
notification_timeout=150
更详细参考:http://www.weiruoyu.cn/?p=388
转载于:https://blog.51cto.com/weiruoyu/903434