2

By adding unknown_limit 50 to munin.conf I've been able to drastically decrease the number of emails I receive from hosts that generate an otherwise acceptable level of UNKNOWN values. The problem is that I still get all the OK notifications, presumably from those services "recovering." Is there any way to minimize those as well? I've been thoroughly disappointed with Munin's documentation on this and practically any other issue that's come up.

Mark
  • 296
  • 3
  • 12

1 Answers1

2

We pipe alerts to an external script (in python, but can be any executable) and ignore both unknowns and oks:

for alert in options.crits + options.warns:
    send_me = True
    ...

Once you have the alerts under control, it can actually be quite helpful during a firefight to get periodic status updates.

xofer
  • 3,072
  • 12
  • 19
  • Do you use a library for parsing the input? How are you doing it? – Mark Oct 03 '13 at 12:36
  • It's an old script, and uses optparse, which has been deprecated in favor of [argparse](http://docs.python.org/2/library/argparse.html) – xofer Oct 03 '13 at 15:18