Nagios own logging check to come, could not be found.
Then check the sendmail log/var/log/maillog, only to discover that I send mail records manually, but no other send record---only following a record: Jul2714: 27 48nagiossm-mta [37141]: m6RERkYR037139: to = < sery@163.com>, ctladdr = < nagios@nagios.sery.com>(1003/1003), delay = 00: 00: 02, xdelay = 00: 00: 01, mailer = esmtp, pri = 30623, relay = 163mx02.mxmail.netease.com. [ nagios@nagios.sery.com> sery@163.com> 220.181.12.66], dsn = 2.0.0, stat = Sent (MailOKqueuedasmx16, QsCowLDbPSxWFYxIb6TzGw == .27600S21217140055) it seems that nagios is not calling sendmail to send mail. I almost forgot, nagios myself logged! please open a look and found that there was a lot of Warning, pumping, which reads as follows: [1217166816] HOSTNOTIFICATION: sery; mail-server; DOWN; host-notify-by-email; CRITICAL-Plugintimedoutafter10seconds [1217166816] Warning: Attemptingtoexecutethecommand "/usr/bin/printf"% b "' * * *** Nagios2.9 ** *** \n\nNotificationType: PROBLEM\nHost: mail-server\nState: DOWN\nAddress: 211.155.115.66 \nInfo: CRITICAL-Plugintimedoutafter10seconds\n\nDate/Time: SunJul2713: 53 36UTC2008\n |/bin/mail-s" HostDOWNalertformail-server! "  sery@163.com "resultedinareturncodeof127.Makesurethescriptorbinaryyouaretryingtoexecuteactuallyexists...
No comments:
Post a Comment