我很难设置我的monitrc文件。我使用Capistrano的设置monit的在Amazon EC2上使用本教程作为指南:如何设置与亚马逊SES的监控
http://railscasts.com/episodes/375-monit
set daemon 30
set logfile /home/deployer/apps/example/shared/log/monit.log
set idfile /var/lib/monit/id
set statefile /var/lib/monit/state
set eventqueue
basedir /var/lib/monit/events
slots 100
set mailserver email-smtp.us-east-1.amazonaws.com port 587
username "amazon_username" password "amazon_password"
using TLSV1
with timeout 30 seconds
set alert [email protected]
set httpd port 2812
allow admin: "admin_password"
check system example_server
if loadavg(5min) > 2 for 2 cycles then alert
if memory > 95% for 2 cycles then alert
if cpu(user) > 75% for 2 cycles then alert
include /etc/monit/conf.d/*
看我的日志,我发现了以下错误:
Sendmail error: 554 Message rejected: Email address is not verified.
我试过其他的东西,比如将端口改为465,但结果相似。
周围的Googling之后,我发现这个职位:
http://syshen.cc/post/14394727394/node-js-upstart-monit-and-aws-ses
它描述了如何设置发件人:
To specify the sender by just “set mail {from: [email protected]}”.
但是这句法是无处可在monit的文档中找到。
任何帮助将不胜感激。一直拉着我的头发。