hassio-addons / addon-grafana

Grafana - Home Assistant Community Add-ons
https://addons.community
MIT License
220 stars 61 forks source link

Can no longer send alert messages via smtp #284

Closed mauriceatkinson closed 1 year ago

mauriceatkinson commented 1 year ago

I configured Alerting contact points with an email notification in Grafana several months ago and when an alert was triggered it fired off an email notification and it worked like a dream. But as I was busy I turned this feature off. Today I have come back and reactivated email alerts but I now receive a message stating the emails could not be sent.

When configuring contact points you have the ability to test the send notification and get a confirmation the email has been sent. However now I receive the message "failed to send test alert: failed to send notification to email addresses: yyy@xxxx.com EOF:" (yyy@xxxx.com replaces real email address)

My Grafana smtp configuration uses gmail and I use the Google app authentication. This has been tested using another service and the gmail service works as expected.

The Grafana error log shows the following message after the test send notification in contact points has been clicked.

logger=alertmanager org=1 t=2022-10-25T18:40:00.801001279+01:00 level=error component=dispatcher msg="Notify for alerts failed" num_alerts=1 err="grafana-default-email/email[0]: notify retry canceled due to unrecoverable error after 1 attempts: failed to send notification to email addresses: yyy@xxxx.com: EOF"

My Grafana config is as follows: env_vars

any ideas as to the problem?

flecmart commented 1 year ago

I have the same problem just noticed this today. Unfortunately I cannot say since when this occured but it definately worked previously. I also tried to switch to webhook notifications via access token bearer authentication but that I also cannot get to work within Grafana.

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

flecmart commented 1 year ago

Not stale for me. However I worked around and use notifier together with https://github.com/pinpox/home-assistant-grafana-relay now.

Can recommend it.

mauriceatkinson commented 1 year ago

this is not stale and it is an outstanding issue

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!