Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am getting an error when trying to configure email alerts with Munin. I've tried with both version 1.4.7 and 2.0.6.

My config file:

contacts admin
contact.admin.command mail -s "Munin notification ${var:host}" admin@company.com
contact.admin.always_send warning critical

[Production;server1]
    use_node_name yes
    address server1addr
    contacts enielson

The error,

2012/08/31 16:47:24 [WARNING] Missing configuration options for contact admin; skipping

How can I fix this?

share|improve this question
    
Turns out contacts must be defined before any host definitions. The example host (localhost) at the top of the config file was causing the the problem. –  jjames Sep 4 '12 at 14:14

1 Answer 1

As stated in comments by jjames, contacts must be defined before hosts. The default munin.conf has a localhost host definition. If you add a new contact at the end of the file you will see this error. To fix remove the example localhost host definition.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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