最近在外网新搭建了一套nagios系统,开始几天nagios报警后还能发邮件通知。但是最近不知道怎么回事,老收不到邮件,手工在服务器上发邮件是可以的。后来查了下sendmail的日志和nagios的日志,发现sendmail的邮件只有邮件信息,没有进邮件队列。nagios那边的日志又报下面的警告。
[1172273126] Warning: Contact 'suiyiwen' service notification command '/usr/bin/printf "%b" "***** Nagios *****/n/nNotification Type: PROBLEM/n/nService: /boot/nHost: hostname/nAddress: 192.168.3.11/nState: CRITICAL/n/nDate/Time: Mon Dec 13 01:20:05 CST 2010/n/nAdditional Info:/n/nDISK CRITICAL - free space: /boot
8 MB (8% inode=99%):" | /bin/mail -s "** PROBLEM Service Alert: hostname//boot is CRITICAL **" suiyiwenadmin@163.com' timed out after 30 seconds
从nagios日志上看,发送邮件超出30秒,如何解决呢?