so installed sensu all working fine… only that I cant get alerts
what I have:
I’m trying two ways… one with postifx localhost and another with aws “ses” (both tested! from outside sensu)
so I install the gem for
sensu-plugins-mailer
I put a .json config on /etc/sensu/conf.d/
called: plugin_mailer.json
and this is the content(obvialist i removed info)
{
“handlers”: {
“mailer”: {
“type”: “pipe”,
“command”: “/usr/local/bin/handler-mailer.rb”,
“admin_gui”: “http://sensu.mysite.com:3000/”,
“mail_from”: "sensu@mysite.com",
“mail_to”: "team@mysite.com",
“smtp_address”: “email-smtp.us-east-1.amazonaws.com”,
“smtp_port”: “587”,
“smtp_username”: “username aws SES amazon gived me”,
“smtp_password”: “password aws SES amazon gived me”,
“smtp_domain”: “mydomain.com”
}
}
I see in the logs that is configure and no errors…
the second option is the same only that instead of adding username/password etc port is 25 smtp is localhost you get the idea
still since I cant see anything on the sensu-server.log only the json runs up like:
“timestamp”:“2016-03-11T04:37:43.008786+0000”,“level”:“info”,“message”:“handler output”,“handler”:{“type”:“pipe”,“command”:"/usr/local/bin/handler-mail
er.rb",“admin_gui”:“http://sensu.misite.com:3000/",“mail_from”:“sensu@site.com”,“mail_to”:“cfernandez@site.com”,“smtp_address”:"
email-smtp.us-east-1.amazonaws.com”,“smtp_port”:“587”,“smtp_username”:“username”,“smtp_password”:“here the pass”,“smtp_domain”:“domain.com”,“name”:“mailer”},“output”:[“only handling every 60 occurrences: my-instance-tcs4/check_disk_usage\n”]}
not much from that in the logs…
anyone can help please?
Thanks!