Don't know if you are still having problems with this but when I ran into this I found that if I did not put in a 'from' attribute, the task would fail to start. Right now you have: from = "" when it should be: from = "[email protected]"
On Thursday, October 20, 2016 at 1:56:41 PM UTC-7, Nikhil Agrawal wrote: > > How to setup email alsert on kapacitor, Where to setup SMTP server address > ,. find below. > > getting below error. logs, kapacitor.conf, tick script > > *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] <javascript:>"] > > > # 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] <javascript:>') > > > .post('arn:aws:sns:ap-northeast-1:330932647836:PSS-Coriolis-Monitoring-Alerts') > > ~ > > > -- > > *Thanks,Nikhil Agrawal | +1 408 505 8443* > -- 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/b6b2768d-5723-4b21-82aa-5b37fbb519df%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
