Configuring Munin alerts on a per-command basis

by fluffy   Last Updated August 14, 2019 01:00 AM

I help administer a number of servers which use Munin for monitoring, and currently have all alert emails going to a specific monitoring email list.

However, I would like some (but not all) alerts to also go to a second monitoring list; specifically I'd like the free space alerts to go to all users of these servers.

From the question "How do I set up alerts for specific parameters" I know how to disable alerts for all contacts, but I'm not finding anything about only enabling specific alerts for specific contacts.

My local.conf is currently something like this:

contact.admins.command mail -s "[munin] ${var:host}: ${var:graph_title} status ${var:worst}" [email protected]
contact.admins.always_send warning critical
contact.admins.text (admin-oriented alert email text redacted for clarity)

contact.users.command mail -s "Storage on ${var:host} is currently ${var:worst}" [email protected]
contact.users.text (user-oriented alert email text redacted for clarity)

[group;servername]
    address servername.example.com
    df.warning 0:90
    df.critical 0:95
    contacts admins

and what I'd like is for the df warnings (and only the df warnings) to also go to users.

From the munin documentation it seems that I can somehow configure the contacts on a per-plugin basis, but there are no examples given, and ideally I'd like to only have this on some, rather than all, hosts (although it's not a big deal if it can't be limited on a per-host basis).

Tags : munin


Related Questions


Updated November 19, 2015 13:00 PM

Updated July 15, 2015 13:00 PM

Updated March 30, 2017 07:00 AM

Updated March 31, 2017 10:00 AM

Updated June 25, 2017 12:00 PM