Munin email notification

Solution 1:

There are two things you need to set for Munin to send out alerts. If both items are not set, mails will not be sent. This is how I have Munin configured to send e-mail via localhost on the machine Munin is running on. Please compare to what you have & adjust accordingly:

contact.myalert.command mail -s "MUNIN - ${var:group} :: ${var:host}" [email protected]
contact.myalert.always_send warning critical

And then under the host tree I have this setup. Note the contacts myalert line:

# a simple host tree
[localhost.localdomain]
    address 127.0.0.1
    use_node_name yes
    contacts myalert

Solution 2:

It seems like your config doesn't match the example from the munin.conf file. The example is:

contact.someuser.command mail -s "Munin notification" [email protected]

And you have:

contact.prashanth.command echo "Munin notification" | sendmail -t [email protected]

I would expect something like this to work:

contact.prashanth.command mail -s "Munin notification" [email protected]