Same reply as to the prior email question: Is there an SMTP server running on localhost port 25?
To clarify, Kapacitor cannot send email by itself. You must have a valid SMTP service running and enter those details into the Kapacitor config file. On Fri, Oct 21, 2016 at 9:37 AM, Nikhil Agrawal <[email protected]> wrote: > I am trying to send email alert in Kapacitor and I am getting error - E! > smtp service not enabled, cannot send email. > > How can i setup email. > > *Logs error:* > > [trial:alert2] 2016/10/20 19:30:40 E! smtp service not enabled, cannot > send email. > > > *kapacitor.conf* > [smtp] > > # Configure an SMTP email server > > # Will use TLS and authentication if possible > > # Only necessary for sending emails from alerts. > > enabled = true > > host = "localhost" > > port = 25 > > username = "" > > password = "" > > # From address for outgoing mail > > from = "" > > # List of default To addresses. > > to = ["[email protected]"] > > > # Skip TLS certificate verify when connecting to SMTP server > > no-verify = false > > # Close idle connections after timeout > > idle-timeout = "30s" > > > # If true the all alerts will be sent via Email > > # without explicitly marking them in the TICKscript. > > global = false > > # Only applies if global is true. > > # Sets all alerts in state-changes-only mode, > > # meaning alerts will only be sent if the alert state changes. > > state-changes-only = false > > > *tick script:* > > stream > > |from() > > .measurement('ec.sessionKey.accountKeyView.timer.realm100') > > > |alert() > > .crit(lambda: "count" > 5) > > .log('/var/log/kapacitor/trial.log') > > .email('[email protected]') > > .post('arn:aws:sns:ap-northeast-1:330932647836:PSS-Coriolis- > Monitoring-Alerts') > > ~ > > > -- > > *Thanks,Nikhil Agrawal | +1 408 505 8443 <%2B1%20408%20505%208443>* > > > > -- > > *Thanks,Nikhil Agrawal | +1 408 505 8443 <%2B1%20408%20505%208443>* > > -- > Remember to include the version number! > --- > You received this message because you are subscribed to the Google Groups > "InfluxData" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/influxdb. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/influxdb/CAMtKHpqCSXxO6WKaO155Ja5nN1-xuqb8iumRfh5iWUrYZugVPw% > 40mail.gmail.com > <https://groups.google.com/d/msgid/influxdb/CAMtKHpqCSXxO6WKaO155Ja5nN1-xuqb8iumRfh5iWUrYZugVPw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Sean Beckett Director of Support and Professional Services InfluxDB -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/CALGqCvMYB6m6UrL-N-14K-%3Danqj9nqTTKRZAv6pnD54JJOYkfA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
