|
本帖最后由 robinher 于 2017-12-6 12:27 编辑
本人MWAN3单线多拨,利用hotplug脚本实现接口上线msmtp发送邮件至QQ邮箱,从而微信提醒接口上线并告知IP地址,接口下线时微信提醒接口DOWN掉了的告警,
使用中发现每次ifup后,都会发送两封邮件,两封间隔几秒,不知何故,是否有办法解决使其只发送一封呢?求大神支招
看到日志里面有发送两次邮件的记录,但明明只有一次ifup啊
- Wed Dec 6 11:52:30 2017 daemon.notice netifd: Network alias 'pppoe-vwan1' link is up
- Wed Dec 6 11:52:30 2017 daemon.notice netifd: Interface 'vwan1_6' is enabled
- Wed Dec 6 11:52:30 2017 daemon.notice netifd: Interface 'vwan1_6' has link connectivity
- Wed Dec 6 11:52:30 2017 daemon.notice netifd: Interface 'vwan1_6' is setting up now
- Wed Dec 6 11:52:30 2017 daemon.notice netifd: Interface 'vwan1_6' is now up
- Wed Dec 6 11:52:30 2017 user.notice mwan3: ifup interface vwan1 (pppoe-vwan1)
- Wed Dec 6 11:52:31 2017 user.info mwan3: connection tracking not flushed on interface vwan1 (pppoe-vwan1) ifup
- Wed Dec 6 11:52:33 2017 mail.info msmtp: host=smtp.qq.com tls=on auth=on user=router@qq.com from=router@qq.com recipients=router@qq.com mailsize=253 smtpstatus=250 smtpmsg='250 Ok: queued as ' exitcode=EX_OK
- Wed Dec 6 11:52:33 2017 user.notice firewall: Reloading firewall due to ifup of vwan1 (pppoe-vwan1)
- Wed Dec 6 11:52:34 2017 cron.info crond[7703]: crond (busybox 1.24.1) started, log level 8
- Wed Dec 6 11:52:35 2017 daemon.notice miniupnpd[4224]: shutting down MiniUPnPd
- Wed Dec 6 11:52:35 2017 daemon.err miniupnpd[7742]: could not open lease file: /var/upnp.leases
- Wed Dec 6 11:52:35 2017 daemon.notice miniupnpd[7742]: HTTP listening on port 5000
- Wed Dec 6 11:52:35 2017 daemon.notice miniupnpd[7742]: HTTP IPv6 address given to control points : [fdd3:7573:d860::1]
- Wed Dec 6 11:52:35 2017 daemon.notice miniupnpd[7742]: Listening for NAT-PMP/PCP traffic on port 5351
- Wed Dec 6 11:52:37 2017 mail.info msmtp: host=smtp.qq.com tls=on auth=on user=router@qq.com from=router@qq.com recipients=router@qq.com mailsize=253 smtpstatus=250 smtpmsg='250 Ok: queued as ' exitcode=EX_OK
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|