Munin不发送电子邮件提醒

我是Linux新手。 我已经安装了Munin并设置了电子邮件警报,但是没有警报产生。 你能帮我么? 这是我的munin.confconfiguration的一部分:

contact.sha.command mail -s "Munin notification - ${var:group} :: ${var:host}" [email protected] contact.sha.always_send warning critical contact.sha.command tee -a /var/log/munin/alert.log ###CONTACT GROUP/GROUPS [sha;] contacts sha # a simple host tree [sha;Munin-Server] address 127.0.0.1 use_node_name yes [sha;Server1] address 192.168.10.253 use_node_name yes cpu.iowait.warning 14 cpu.iowait.critical 17 cpu.system.warning 10 df_dev_mapper_VolGroup_lv_root.warning .5 #contacts sha [sha;Website] address 172.16.1.184 use_node_name yes [sha;Serv] address 172.16.1.184 port 4948 use_node_name yes [sha;Server2] address 192.168.10.252 use_node_name yes cpu.iowait.warning 14 cpu.iowait.critical 17 cpu.system.warning 5 vmstat.wait.warning 1 vmstat.wait.critical 2 

我在电子邮件中没有收到任何警报,但是我在/var/log/munin/alert.log中收到了所有警报

  # /var/log/munin/alert.log sha :: Server2 :: CPU usage WARNINGs: system is 5.24 (outside range [:5]). sha :: Server2 :: CPU usage OKs: system is 4.83. sha :: Server2 :: VMstat WARNINGs: running is 2.00 (outside range [:1]). 

电子邮件在“/ var / spool / mail / root”排队,这里是其中的一个电子邮件:

  From [email protected] Tue Apr 25 22:50:21 2017 Return-Path: <[email protected]> X-Original-To: root Delivered-To: [email protected] Received: by Munin.localdomain (Postfix, from userid 498) id BTN8B30F7G; Tue, 25 Apr 2017 22:50:21 +0100 (BST) From: [email protected] (Cron Daemon) To: [email protected] Subject: Cron <munin@Munin> test -x /usr/bin/munin-cron && /usr/bin/munin-cron Content-Type: text/plain; charset=UTF-8 Auto-Submitted: auto-generated X-Cron-Env: <LANG=en_US.UTF-8> X-Cron-Env: <MAILTO=root> X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/var/lib/munin> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=munin> X-Cron-Env: <USER=munin> Message-Id: <[email protected]> Date: Tue, 25 Apr 2017 22:50:17 +0100 (BST) sha :: Server2 :: CPU usage WARNINGs: system is 5.15 (outside range [:5]). 

任何帮助将高度赞赏,因为我已经在networking上search任何可能的解决scheme,但找不到任何东西。 提前致谢

看起来,每个contact只能定义一个命令,最后一个设置会覆盖以前的任何一个。 我在文档中找不到任何明确的说明,但观察到的行为肯定与此相匹配。

我想,如果你需要采取多种行动,那么你会使用多个联系人或推送通知到另一个系统,如Nagios