ssk’s posterous

ssk’s posterous

Aug 27 / 2:55am

Munin

by ssk

Munin internal alerting system

Munin graphs are nice; but if you don't want to check them every morning for suspiciously high network traffic or critical disk usage, you would probably want munin to send you an alert if it finds an "unusual" value. Munin has a very basic alerting system built-in. Imagine your email adress is yann@foo.com, and you want to receive a mail if the load on serverA goes over 3, and another mail if it reaches the critical value 5. You also want chris, chris@foo.com, to be notified.

In /etc/munin/munin.conf, add the following line (usually over the part defining the nodes to monitor) :

contact.yann.command mail −s "Munin notification" yann@foo.com contact.chris.command mail −s "Munin notification" chris@foo.com

Then, in the part describing serverA:

[domain;serverA] address aaa.aaa.aaa.aaa use_node_name yes load.warning 3 load.critical 5 contacts yann chris

引用するとずれるなぁ

Filed under  //  munin  

Comments (0)

Apr 24 / 1:24am

munin configuration for alert mail

by ssk

not running below settings. umm.

# for alerts settings.
contact.email.command mails -s "Munin-notification for ${var:group} :: ${var:host}" foo@example.com
contact.email.always_send warning critical
contacts email

[localhost.localdomain]
address 127.0.0.1
use_node_name yes
df._dev_sda1.warning 50
df.pper_debonvm01_root.warning 70
df.pper_debonvm01_home.warning 50
contacts email
 
$ df
Filesystem 1K-ブロック 使用 使用可 使用% マウント位置
/dev/mapper/debonvm01-root
1773912 1212572 471228 73% /
tmpfs 128200 0 128200 0% /lib/init/rw
udev 10240 92 10148 1% /dev
tmpfs 128200 0 128200 0% /dev/shm
/dev/sda1 233335 33990 186897 16% /boot
/dev/mapper/debonvm01-home 3922724 784820 2938636 22% /home

Filed under  //  munin  

Comments (1)