Munin : Email Notification2026/04/06 |
|
Configure Notification setting to send notification emails. |
|
| [1] |
For Email notification, it needs SMTP Server. |
| [2] | Configure to send notifications to root account. |
|
[root@dlp ~]#
dnf -y install s-nail
[root@dlp ~]#
vi /etc/munin/munin.conf # near line 105 : 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 user 2026-04-02 10:15 38/1403 "Munin-notification for"
? 1
[-- Message 1 -- 38 lines, 1403 bytes --]:
Date: Thu, 02 Apr 2026 10:15:54 +0900
To: root@dlp.srv.world
Subject: Munin-notification for srv.world::dlp.srv.world
Message-Id: <20260402011554.A5F08304E71B@dlp.srv.world>
From: Munin user <munin@dlp.srv.world>
srv.world :: dlp.srv.world :: Disk usage in percent
OKs: /boot is 59.10, /run is 1.18, / is 10.80, /dev/shm is 0.00.
srv.world :: dlp.srv.world :: File table usage
OKs: open files is 1536.00.
srv.world :: dlp.srv.world :: Load average
OKs: load 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.01.
srv.world :: dlp.srv.world :: Disk latency per device :: Average latency for /de
v/cs/swap
OKs: Read IO Wait time is 0.00, Write 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 105 : add the line
contact.log.command tee -a /var/log/munin/alert.log
|
| Sponsored Link |
|
|