- 论坛徽章:
- 0
|
本帖最后由 chenshouqi2003 于 2015-02-05 16:09 编辑
求助:
nagios由于前阵子飞信升级,短信提醒不能用了。打算用sendmail发邮件提醒。提示:collect: premature EOM: unexpected close错误。
maillog错误信息
Feb 5 10:47:14 hostname sendmail[7220]: t152l6YV007220: from=nagios, size=451, class=0, nrcpts=1, msgid=<201502050247.t152l6YV007220@loalhost>, relay=nagios@localhost
Feb 5 10:47:24 hostname sendmail[7222]: t152lEZl007222: from=<nagios@loalhost>, size=451, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 5 10:57:20 hostname sendmail[8239]: t152v7L4008239: from=nagios, size=451, class=0, nrcpts=1, msgid=<201502050257.t152v7L4008239@loalhost>, relay=nagios@localhost
Feb 5 10:57:24 hostname sendmail[8240]: t152vKqJ008240: collect: premature EOM: unexpected close
Feb 5 10:57:24 hostname sendmail[8240]: t152vKqJ008240: collect: unexpected close on connection from localhost, sender=<nagios@loalhost>
Feb 5 10:57:24 hostname sendmail[8240]: t152vKqJ008240: from=<nagios@loalhost>, size=5, class=0, nrcpts=1, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 5 11:08:13 hostname sendmail[9349]: t1537xKJ009349: from=nagios, size=0, class=0, nrcpts=0, relay=nagios@localhost
Feb 5 11:18:14 hostname sendmail[10348]: t153I43b010348: from=nagios, size=0, class=0, nrcpts=0, relay=nagios@localhost
"/var/log/maillog" 10131L, 1821760C
nagios.log错误信息
: Thu Feb 5 11:27:45 CST 2015\n\nAdditional Info:\n\n拒绝连接\n" | /bin/mail -s "** PROBLEM Service Alert: 14.17.113.164/3306 is CRITICAL **" xxx@xxx.com' timed out after 30 seconds
[1423107116] SERVICE ALERT: X.X.X.X PING;WARNING;SOFT;1 ING WARNING - Packet loss = 28%, RTA = 61.47 ms
[1423107116] SERVICE ALERT: X.X.X.X ING;WARNING;SOFT;1 ING WARNING - Packet loss = 28%, RTA = 68.94 ms
[1423107176] SERVICE ALERT: X.X.X.X ING;OK;SOFT;2 ING OK - Packet loss = 0%, RTA = 20.93 ms
[1423107176] SERVICE ALERT: X.X.X.X ING;OK;SOFT;2 ING OK - Packet loss = 0%, RTA = 25.06 ms
[1423107296] SERVICE ALERT: X.X.X.X;HTTP80;CRITICAL;SOFT;1;CRITICAL - Socket timeout after 10 seconds
[1423107346] SERVICE ALERT: X.X.X.X;HTTP80;OK;SOFT;2;TCP OK - 0.023 second response time on port 80
[1423107466] SERVICE NOTIFICATION: nagiosadmin;X.X.X.X;3306;CRITICAL;notify-service-by-email;拒绝连接
[1423107497] Warning: Contact 'nagiosadmin' service notification command '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: 3306\nHost: X.X.X.X\nAddress: X.X.X.X\nState: CRITICAL\n\nDate/Time
: Thu Feb 5 11:37:46 CST 2015\n\nAdditional Info:\n\n拒绝连接\n" | /bin/mail -s "** PROBLEM Service Alert: X.X.X.X/3306 is CRITICAL **" xxx@xxx.com' timed out after 30 seconds |
|