Package: munin Version: 1.2.5-1 Severity: minor
Please add this to the munin documentation, as this is missing from the normal munin docs. I personally added it directly in my munin.conf http://edseek.com/archives/2006/07/13/munin-alert-email-notification/ ----------------------------->8==================================================== Munin has support for sending mails when specified warning and critical thresholds are exceeded. If you aren't already running a notification system, such as Nagios, Munin's notification works splendidly. A few changes to munin.conf are all that's needed. First, you need to configure contacts, which enables the notification system. contacts me contact.me.command mail -s "Munin notification ${var:host}" [EMAIL PROTECTED] contact.me.always_send warning critical Above, I define a contact entry named, aptly, me. Pick any name you would like. Next, the specific command action is defined. It's really just a string to be executed by a shell which will receive the body of the alert message as STDIN. For sending email an appropriate command such as mail is used. Finally, mails will always be sent on any warning or critical state. Next, recognize that alerts will only be sent for plugins that actually provide warning and critical values. A few of the default plugins do, the rest do not. What's more, appropriate thresholds may vary by machine. Fortunately, you can define thresholds per plugin per host though how isn't entirely explained in the documentation. [foo.example.com] address 127.0.0.1 use_node_name yes df._dev_sda1.warning 97 hddtemp_smartctl.hde.critical 41 # This won't work # hddtemp_smartctl.*.critical 41 In munin.conf, for each node of interest, you can define specific threshold values for a given host or override values provided by any plugin that already includes thresholds in its output. The format is plugin.fieldname.{critical,warning} value. You can find the fieldnames in the HTML graph views for fieldnames that are determined at configuration time by the plugin. Above, the default warning threshold for the df plugin of 92 is overridden with 97. (In this case, it's the % full output from the df command.) Additionally, a temperature threshold for critical is provided for the hddtemp_smartctl plugin, which does not specify one by default. A different value can be specified per host. I couldn't specify thresholds globally per plugin for plugins that had no default. You must edit the plugin itself and redstribute it to monitored systems for new global defaults. ======================================8<-------------------------------------------------- -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18.1 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages munin depends on: ii adduser 3.102 Add and remove users and groups pn libdigest-md5-perl <none> (no description available) ii libhtml-template-perl 2.8-1 HTML::Template : A module for usin ii libparse-recdescent-perl 1.94.free-3 Generates recursive-descent parser ii librrds-perl 1.2.15-0.3 Time-series data storage and displ pn libtime-hires-perl <none> (no description available) ii perl [libstorable-perl] 5.8.8-7 Larry Wall's Practical Extraction ii perl-modules 5.8.8-7 Core Perl modules ii rrdtool 1.2.15-0.3 Time-series data storage and displ Versions of packages munin recommends: ii libdate-manip-perl 5.44-5 a perl library for manipulating da ii munin-node 1.2.5-1 network-wide graphing framework (n -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]