Ubuntu 24.04

Munin : Email Notification2026/03/13

 

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  Thu Oct  2 09:02  36/1503  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 110)
        id 5AFEB6812E; Thu, 12 Mar 2026 23:58:48 +0000 (UTC)
Subject: Munin-notification for srv.world::dlp.srv.world
To: root@dlp.srv.world
User-Agent: mail (GNU Mailutils 3.17)
Date: Thu, 12 Mar 2026 23:58:48 +0000
Message-Id: <20260312235848.5AFEB6812E@dlp.srv.world>
From: munin application user <munin@dlp.srv.world>
X-UID: 2
Status: O

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

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

srv.world :: dlp.srv.world :: Disk latency per device :: Average latency for /de
v/vda
        OKs: Write IO Wait time is 0.00, Read IO Wait time is 0.00.
.....
.....
[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