James Pei
James Pei

Reputation: 151

alertmanager won't send out e-mail

I am trying to use "E-mail" to receive alert from Prometheus with alertmanager, however, It is keeping print such log like: "Error on notify: EOF" source="notify.go:283" and "Notify for 3 alerts failed: EOF" source="dispatch.go:261". My alertmanager config is like below:

   smtp_smarthost: 'smtp.xxx.com:xxx'
   smtp_from: '[email protected]'
   smtp_auth_username: '[email protected]'
   smtp_auth_password: 'xxxxxxx'
   smtp_require_tls: false

route:
  group_by: ['instance']
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 7m
  receiver: email
  routes:
  - match:
      severity: critical
      receiver: email
  - match_re:
      severity: ^(warning|critical)$
      receiver: support_team

receivers:
- name: 'email'
  email_configs:
  - to: '[email protected]'
- name: 'support_team'
  email_configs:
  - to: '[email protected]'
- name: 'pager'
  email_configs:
  - to: '[email protected]'

Any suggest?

Upvotes: 1

Views: 2367

Answers (1)

James Pei
James Pei

Reputation: 151

I use smtp.xxx.com:587 fixed the issue,but also need to set smtp_require_tls: true

Upvotes: 2

Related Questions