I'm attempting to set up e-mail notifications using collectd and the threshold / notify_email plugins. I'm running Ubuntu 14.04 LTS, attempting to relay e-mails through Amazon SES.
Relevant package versions:
- collectd 5.4.0-3ubuntu2 amd64
- libesmtp6 1.0.6-1ubuntu2 amd64
LoadPlugin syslog LoadPlugin cpu LoadPlugin load LoadPlugin notify_email LoadPlugin threshold <Plugin syslog> LogLevel "info" NotifyLevel "OKAY" </Plugin> # Actual credentials redacted... <Plugin notify_email> From "email@example.com Recipient "firstname.lastname@example.org" Subject "[collectd] %s on %s!" SMTPServer "email-smtp.us-east-1.amazonaws.com" SMTPPort "465" SMTPUser "" SMTPPassword "" </Plugin> <Plugin threshold> <Type "load"> DataSource "shortterm" WarningMax 0.5 Hysteresis 0.3 </Type> <Type "cpu"> Instance "user" WarningMax 5 Hits 1 </Type> </Plugin>
I see the notifications come through in
/var/log/syslog but I'm not seeing any e-mails (or error messages). I know that the credentials are correct.
I went a step further and built collectd 5.4.1 from source with
--enable-debug so I could set
LogLevel "debug" for
syslog, but nothing indicating any sort of failure was revealed.
I have noticed that using a different SMTP port (e.g. 25 or 587) did generate some debug output after notifications came through (
530 Must issue a STARTTLS command first followed by
530 Authentication required).
I've also noticed that just adding the plugin configuration for
notify_email makes the collectd service fail to stop without a
Anyone else encountered similar issues using this plugin with Ubuntu 14.04?