Munin - Set Alart notification2011/06/18 |
Set Alart notification.
|
|
[1] | Configuration |
[root@master ~]#
vi /etc/munin/munin.conf # line 58: add
contact.email.command mail -s "Munin-notification for ${var:host}" root
# send notification forcely [root@master ~]# su - munin --shell=/bin/bash -c "/usr/share/munin/munin-limits --contact email --force"
# following email is sent From munin@master.srv.world Sat Jun 18 01:54:15 2011 Return-Path: <munin@master.srv.world> X-Original-To: root Delivered-To: root@master.srv.world Date: Sat, 18 Jun 2011 01:54:14 +0900 To: root@master.srv.world Subject: Munin-notification for master.srv.world User-Agent: Heirloom mailx 12.4 7/29/08 Content-Type: text/plain; charset=us-ascii From: munin@master.srv.world (Munin user) Status: R srv.world :: master.srv.world :: Disk usage in percent OKs: / is 5.99, /boot is 14.05, /dev/shm is 0.00. srv.world :: master.srv.world :: Inode usage in percent OKs: / is 2.00, /boot is 1.00, /dev/shm is 1.00. srv.world :: master.srv.world :: File table usage OKs: open files is 864.00. srv.world :: master.srv.world :: Munin processing time OKs: munin update is 4.43, munin graph is 4.00. srv.world :: master.srv.world :: eth2 errors OKs: packets is 0.00, packets is 0.00. |
[2] | The setting of threshold is [ plugin_name.field_name.(warning | critical) args ], it is shown on the graph. Some examples are follows. |
[root@master ~]#
vi /etc/munin/munin.conf # set threshold to target host [node01.srv.world] address 10.0.0.101 use_node_name yes # warn with 80% of CPU usage, critical with 90% cpu.system.warning 80 cpu.system.critical 90 # warn with 80% of disk usage, critical with 90% df._dev_mapper_VolGroup_lv_root.warning 80 df._dev_mapper_VolGroup_lv_root.critical 80 # wanr with 10 of loginuser, critical with 20 users.tty.warning 10 users.tty.critical 20 |
Sponsored Link |