I have setup alerts in munin.conf

contacts user1 user2 user3 user4
contact.user1.command mail -s "Munin notification" mailid1@mydomain.in
contact.user2.command mail -s "Munin notification" mailid2@mydomain.in
contact.user3.command mail -s "Munin notification" mailid3@mydomain.in
contact.user4.command mail -s "Munin notification" mailid4@mydomain.in
contact.user1.always_send critical
contact.user2.always_send warning critical
contact.user3.always_send warning critical
contact.user4.always_send critical

But this is likely to send me notifications when any of the parameters hit the warning or critical threshold. Is there a way to set alerts for only a specific set of parameters, In my case I would like to set it up only for : cpu utilization, memory utilization, load average, and disk utilization

Unfortunately the Munin documentation is silent on this.

up vote 3 down vote accepted

You can suppress notifications for specific plug-ins using the plugin level directive contacts. From the documentation:

contacts: Enables (by naming contacts) or disables ("no") warnings through external system

They have an example, in the sample munin.conf:

  df.contacts no     # Don't warn (...) if the 'df' plugin exceed warning values.
  • This leads me to ask another question How do I get the plugin names? Do they default to the file names? – sridhar pandurangiah Aug 21 '13 at 6:15
  • I don't have a munin installation available to check, but look at the information on the package for your linux distribution and you may find it there. For instance, the list of files from the Debian package may help you. – Paulo Almeida Aug 21 '13 at 23:34
  • To get final plugin names to match against, it's useful to look at the names of the RRD files in /var/lib/munin on the master, which are in turn generated from what's in the output of munin-run pluginname config on the nodes – Josip Rodin Dec 16 '16 at 9:58

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.