diff --git a/roles/mgrote_munin_server/defaults/main.yml b/roles/mgrote_munin_server/defaults/main.yml index 95cbc2b8..3d869be6 100644 --- a/roles/mgrote_munin_server/defaults/main.yml +++ b/roles/mgrote_munin_server/defaults/main.yml @@ -31,8 +31,6 @@ munin_hosts: address: "127.0.0.1" extra: ["use_node_name yes"] -munin_mail_user: user -munin_mail_pass: geheim munin_mail_server: mail.server.com munin_mail_port: 25 munin_mail_tls: false diff --git a/roles/mgrote_munin_server/templates/munin.conf b/roles/mgrote_munin_server/templates/munin.conf index 9f56b32a..5db05327 100644 --- a/roles/mgrote_munin_server/templates/munin.conf +++ b/roles/mgrote_munin_server/templates/munin.conf @@ -89,6 +89,7 @@ includedir /etc/munin/munin-conf.d # Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime # something changes (OK -> WARNING, CRITICAL -> OK, etc) +# test with: sudo -u munin /usr/share/munin/munin-limits --contact someuser --force {% if munin_enable_alerts is sameas true %} contact.someuser.command mail -aFROM:munin@mgrote.net -s "Munin ${var:worst}: ${var:group}::${var:host}::${var:plugin}" {{ munin_alerts_to }} {% endif %}