Ubuntu 16.04
Sponsored Link

Munin : Email Notification2016/06/06

 
Configure Notification's Setting to send notification emails.
[1] Configure to send notifications to root account.
# install mail-utils

root@dlp:~#
apt-get -y install mailutils
root@dlp:~#
vi /etc/munin/munin.conf
# near line 96: add

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"
# the email is sent like follows

From: munin@dlp.srv.world (munin application user)

srv.world :: dlp.srv.world :: Inode usage in percent
        OKs: / is 6.20, /run/user/0 is 0.00, /run/lock is 0.00, /boot is 0.24, /
run is 0.11, /sys/fs/cgroup is 0.00, /dev is 0.09, /dev/shm is 0.00.

srv.world :: dlp.srv.world :: ens3 errors
        OKs: errors is 0.00, errors is 0.00.

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

srv.world :: dlp.srv.world :: Disk usage in percent
        OKs: / is 7.44, /run/user/0 is 0.00, /run/lock is 0.00, /boot is 22.57,
/run is 1.42, /sys/fs/cgroup is 0.00, /dev/shm is 0.00.

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

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

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

srv.world :: dlp.srv.world :: Munin processing time
        UNKNOWNs: munin graph is unknown.
        OKs: munin update is 4.59.
[2] Configure like follows if you'd like to record notifications to a file as a log.
root@dlp:~#
vi /etc/munin/munin.conf
# near line 96: add like follows

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