Ubuntu 26.04

Munin : Email Notification2026/06/10

 

Configure Notification setting to send notification emails.

[1]

For Email notification, it needs SMTP Server.
On this example, it based on the environment that SMTP Server is running on localhost.

[2] Configure to send notifications to root account.
root@dlp:~#
apt -y install mailutils
root@dlp:~#
vi /etc/munin/munin.conf
# near line 87 : add the line

contact.email.command mail -s "Munin-notification for ${var:group}::${var:host}" root
# try to send a notification forcely

root@dlp:~#
su - munin --shell=/bin/bash -c "/usr/share/munin/munin-limits --contact email --force"

root@dlp:~#
mail

"/var/mail/root": 1 message 1 new
>N   1 munin application  Wed Jun 10 00:24  33/1375  Munin-notification for srv.world::dlp.srv.world
? 1
Return-Path: <munin@dlp.srv.world>
X-Original-To: root
Delivered-To: root@dlp.srv.world
Received: by dlp.srv.world (Postfix, from userid 105)
        id 63601604E3; Wed, 10 Jun 2026 00:24:47 +0000 (UTC)
Subject: Munin-notification for srv.world::dlp.srv.world
To: root@dlp.srv.world
User-Agent: mail (GNU Mailutils 3.20)
Date: Wed, 10 Jun 2026 00:24:47 +0000
Message-Id: <20260610002447.63601604E3@dlp.srv.world>
From: munin application user <munin@dlp.srv.world>

srv.world :: dlp.srv.world :: Disk latency per device :: Average latency for /de
v/ubuntu-vg/ubuntu-lv
        OKs: Write IO Wait time is unknown, Read IO Wait time is unknown.

srv.world :: dlp.srv.world :: Disk latency per device :: Average latency for /de
v/vda
        OKs: Read IO Wait time is unknown, Write IO Wait time is unknown.

srv.world :: dlp.srv.world :: File table usage
        OKs: open files is 1299.00.

srv.world :: dlp.srv.world :: Inode usage in percent
        OKs: / is 6.25, /run is 0.09, /boot is 0.26, /dev/shm is 0.00, /tmp is 0
.00.

srv.world :: dlp.srv.world :: enp1s0 errors
        OKs: errors is unknown, errors is unknown.

srv.world :: dlp.srv.world :: Disk usage in percent
        OKs: /run is 0.15, / is 25.95, /tmp is 0.00, /boot is 5.36, /dev/shm is
0.00.

srv.world :: dlp.srv.world :: Munin processing time
        OKs: munin update is unknown, munin graph is unknown: Can't open /var/log/munin/munin-graph.log for reading.
[3] If you want to write alerts to a log file instead of sending an email, set it as follows:
root@dlp:~#
vi /etc/munin/munin.conf
# near line 87 : add the line

contact.log.command tee -a /var/log/munin/alert.log
Matched Content