nagios不报警,怎么回事

myredshoe 2016-12-12 05:08:17
环境centos7 nagios4.0.8 postfix
首先手动发邮件没有问题,nagios服务通知也启用了,contact.cfg的email也改过来,不知道哪里出错了,查看maillog里只有自己测试的邮件,nagios日志里也没有邮件的信息,也没有报错,不知道什么情况了,求大神看下,下面是我关掉http服务后的日志
[1481523495] SERVICE ALERT: localhost;SSH;CRITICAL;SOFT;1;connect to address 127.0.0.1 and port 22: Connection refused
[1481523502] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;3;connect to address 127.0.0.1 and port 80: Connection refused
[1481523555] SERVICE ALERT: localhost;SSH;CRITICAL;SOFT;2;connect to address 127.0.0.1 and port 22: Connection refused
[1481523562] SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;4;connect to address 127.0.0.1 and port 80: Connection refused
[1481523615] SERVICE ALERT: localhost;SSH;CRITICAL;SOFT;3;connect to address 127.0.0.1 and port 22: Connection refused
[1481523675] SERVICE ALERT: localhost;SSH;CRITICAL;HARD;4;connect to address 127.0.0.1 and port 22: Connection refused
[1481524162] SERVICE ALERT: localhost;HTTP;OK;HARD;4;HTTP OK: HTTP/1.1 200 OK - 276 bytes in 0.002 second response time
[1481524224] Caught SIGTERM, shutting down...
[1481524224] Successfully shutdown... (PID=6223)
[1481524224] Event broker module 'NERD' deinitialized successfully.
[1481524224] Nagios 4.0.8 starting... (PID=6627)
[1481524224] Local time is Mon Dec 12 14:30:24 CST 2016
[1481524224] LOG VERSION: 2.0
[1481524224] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1481524224] qh: core query handler registered
[1481524224] nerd: Channel hostchecks registered successfully
[1481524224] nerd: Channel servicechecks registered successfully
[1481524224] nerd: Channel opathchecks registered successfully
[1481524224] nerd: Fully initialized and ready to rock!
[1481524224] wproc: Successfully registered manager as @wproc with query handler
[1481524224] wproc: Registry request: name=Core Worker 6631;pid=6631
[1481524224] wproc: Registry request: name=Core Worker 6632;pid=6632
[1481524224] wproc: Registry request: name=Core Worker 6630;pid=6630

...全文
197 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
myredshoe 2016-12-12
  • 打赏
  • 举报
回复
这是maillog的日志 Dec 12 15:53:53 localhost postfix/qmgr[5117]: EE30087958: removed Dec 12 17:34:14 localhost postfix/pickup[7656]: 8EC1D87958: uid=1000 from=<nagios> Dec 12 17:34:14 localhost postfix/cleanup[7822]: 8EC1D87958: message-id=<20161212093414.8EC1D87958@localhost.localdomain> Dec 12 17:34:14 localhost postfix/qmgr[5117]: 8EC1D87958: from=<nagios@localhost.localdomain>, size=733, nrcpt=1 (queue active) Dec 12 17:34:22 localhost postfix/smtp[7824]: 8EC1D87958: host 126mx02.mxmail.netease.com[220.181.15.144] said: 451 DT:SPM 126 mx30,LMmowEBZUlQdb05YT4AnBg--.45475S2 1481535262, please try again 15min later (in reply to end of DATA command) Dec 12 17:34:22 localhost postfix/smtp[7824]: 8EC1D87958: to=<shuipingshen@126.com>, relay=126mx02.mxmail.netease.com[220.181.15.154]:25, delay=8.2, delays=0.02/0.01/8.1/0.11, dsn=5.0.0, status=bounced (host 126mx02.mxmail.netease.com[220.181.15.154] said: 554 DT:SPM 126 mx37,0cmowEAJLk4eb05YmfYTBQ--.35625S2 1481535262,please see http://mail.163.com/help/help_spam_16.htm?ip=101.81.49.177&hostid=mx37&time=1481535262 (in reply to end of DATA command)) Dec 12 17:34:22 localhost postfix/cleanup[7822]: CEACC8795A: message-id=<20161212093422.CEACC8795A@localhost.localdomain> Dec 12 17:34:22 localhost postfix/qmgr[5117]: CEACC8795A: from=<>, size=2967, nrcpt=1 (queue active)

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧