CentOS 6
Sponsored Link

Munin : Notification's Setting2015/02/18

 
Configure Notification's Setting to send notification emails.
[1] Configure setting to send notifications to root account.
[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  Fri Feb 18 20:02:27 2015

srv.world :: dlp.srv.world :: Disk usage in percent
        OKs: /boot is 26.23, / is 8.94, /dev/shm is 0.00.

srv.world :: dlp.srv.world :: Inode usage in percent
        OKs: /boot is 0.05, / is 3.90, /dev/shm is 0.00.

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

srv.world :: dlp.srv.world :: Disk latency per device :: Average latency f
or /dev/vda
        OKs: Read IO Wait time is 0.01, Write IO Wait time is 0.14.

srv.world :: dlp.srv.world :: Disk latency per device :: Average latency f
or /dev/VolGroup/lv_swap
        OKs: Read IO Wait time is 0.00, Write IO Wait time is 0.00.

srv.world :: dlp.srv.world :: Disk latency per device :: Average latency f
or /dev/VolGroup/lv_root
        OKs: Read IO Wait time is 0.01, Write IO Wait time is 0.12.

srv.world :: dlp.srv.world :: eth0 errors
        OKs: errors is 0.00, errors is 0.00.
[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

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