Skip to content


 Zabbix
 Grafana
 Prometheus
 Threejs and TypeScript
 SocketIO and TypeScript
 Blender Topological Earth
 Sweet Home 3D
 Design Patterns Python
 Design Patterns TypeScript
   
 Course Coupon Codes
Three.js and TypeScript
Kindle Edition
$9.99 $14.99 Paperback 
$29.99 $34.99




Design Patterns in TypeScript
Kindle Edition
$9.99 $14.99 Paperback
$19.99 $24.99




Design Patterns in Python
Kindle Edition
$9.99 $14.99 Paperback
$19.99 $24.99




Create Email Alert Notification Channel

Video Lecture

Create an Email Alert Notification Channel Create an Email Alert Notification Channel Create Email Alert Notification Channel

Description

I want to send alerts using Grafana, but I need to first create an alert notification channel.

In this lecture I will create a new channel for email alerts.

If you don't have an SMTP server available, you can install a local send only SMTP server on your Grafana server itself.

1
sudo apt install mailutils

At the prompt, I choose Internet Site

After the install is finished, I need to configure the Postfix SMTP server.

1
sudo nano /etc/postfix/main.cf

I edit 2 values at the bottom being,

1
2
inet_interfaces = loopback-only
inet_protocols = ipv4

Then restart postfix

1
sudo systemctl restart postfix

I can test the SMTP server sends emails using

1
echo "This is the body" | mail -s "This is the subject" -a "FROM:root@your-domain.tld" your@email-address

Next to configure Grafana SMTP settings

1
sudo nano /etc/grafana/grafana.ini

Find the SMTP specific settings, uncomment and edit

1
2
3
4
5
6
[smtp]
enabled = true
host = localhost:25
skip_verify = true
from_address = admin@[your grafana domain name or ip]
from_name = Grafana

Restart Grafana

1
sudo service grafana-server restart

Go back into Grafana, into your new Email notification channel settings and try to send a test email.

Check your SPAM folder.

Troubleshooting

If you have trouble receiving emails at your email provider, then please see my SMTP Troubleshooting page in my Zabbix course at https://sbcode.net/zabbix/setup-smtp/#troubleshooting