1

リソース監視ツール Munin を使用しています。(バージョン 1.4.6)

今日は、値が高すぎるときに通知を受け取る電子メール アラート機能を有効にしました。

munin では、2 つのレベルのアラートを設定できます。(警告またはクリティカル)

munin.conf ファイルを次のように構成しました。

contact.scs.command mail -s "Munin notification ${var:host}" simon@domain.net

[varnish;server01.domain.net]
  address server01.domain.net
  use_node_name yes
  cpu.iowait.warning 14
  cpu.iowait.critical 17
  cpu.contacts scs

パフォーマンス値が定義された最大値を超えると、アラート付きのメール通知が正常に送信されます。:-)

今私の質問に:

重要な通知を警告通知とは別のメール アドレスに送信することはできますか?

残念ながら、私はウェブで何も見つけることができませんでした。

私はすでにこれを試しましたが、うまくいきませんでした:

contact.scs.command mail -s "Munin notification ${var:host}" simon@domain.net
contact.crit.command mail -s "Munin notification ${var:host}" critical@domain.net

[varnish;server01.domain.net]
  address server01.domain.net
  use_node_name yes
  cpu.iowait.warning 14
  cpu.iowait.critical 17
  cpu.contacts scs
  cpu.contacts.warning scs
  cpu.contacts.critical crit

手伝ってくれてありがとう!

4

2 に答える 2

0

これはあなたのための推測です。すべての警告のみの連絡先:

contact.scs.command mail -s "Munin notification ${var:host}" simon@domain.net
contact.scs.always_send warning

すべての重要な連絡先の場合:

contact.crit.command mail -s "Munin notification ${var:host}" critical@domain.net
contact.crit.always_send critical

警告および重要な連絡先の場合:

contact.other.command mail -s "Munin notification ${var:host}" other@domain.net
contact.other.always_send warning critical
于 2013-08-26T17:59:10.130 に答える