AcalephStorage / consul-alerts

A simple daemon to send notifications based on Consul health checks
GNU General Public License v2.0
825 stars 191 forks source link

Consul Alert Notification. #125

Open avdhoot07 opened 8 years ago

avdhoot07 commented 8 years ago

I have configured email notification in Consul. Alerts are getting generated, but i am unable to receive emails.

Can you please help me with the configuration to receive alert notification by email.

root@consul-2:/tmp# netstat -ntlp | grep consul tcp 0 0 127.0.0.1:8400 0.0.0.0:* LISTEN 25507/consul tcp 0 0 127.0.0.1:8500 0.0.0.0:* LISTEN 25507/consul tcp 0 0 127.0.0.1:8600 0.0.0.0:* LISTEN 25507/consul tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 25656/consul-alerts tcp6 0 0 :::8300 :::* LISTEN 25507/consul tcp6 0 0 :::8301 :::* LISTEN 25507/consul tcp6 0 0 :::8302 :::* LISTEN 25507/consul

consul_config

tsaridas commented 8 years ago

you should check the logs of consul-alerts. It should show if its trying to send an email or not.

common issue is that smtp server does not have a trusted certificate

gamefundas commented 7 years ago

I am getting the following error INFO[0249] Unable to send notification: unencrypted connection

Is this related and whether any workarounds for this? My mailhost doesn't use a username/password either.