Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this nagios configuration that won't validate.

I'm trying to set up contacts and the various groups of contacts. My Contacts are based off of my generic-manager template:

define contact {

    contact_name                    generic-manager
    name                            generic-manager
    alias                           Manager Template
    service_notification_period     hours
    host_notification_period        hours
    service_notification_options    w,c,r                        
    host_notification_options       d,u,r                        
    service_notification_commands   notify-service-by-email,             
    host_notification_commands      notify-host-by-email,
    register                        0 }

My Contact definition:

define contact {

    use                             generic-manager  
    name                            manager-1  
    contact_name                    First Manager  
    contactgroups                   branch  
    email                  }

Contact Group definition:

define contactgroup {

    contactgroup_name       branch
    alias                   Contacts for Branch  
    members                 admins,manager-1 }

When I verify the configuration nagios -v /etc/nagios3/nagios.cfg I get the following errors.

Error: Could not find any contact matching 'manager-1' Error: Could not expand member contacts specified in contactgroup

I've made sure that everything is spelled correctly, but it doesn't seem to be working. Any suggestions?

share|improve this question
up vote 3 down vote accepted

According to "contact_name" should be used for the short name (that is used in groups etc.) and "alias" for the longer name. So you should change it to:

contact_name manager-1
alias First Manager

Also, you should use either "contactgroups" in a contact or "members" in a contactgroup, not both. While it will not break anything now, it might lead to confusion later if you update only one and find that it has no effect.

share|improve this answer

in your contact def. can you replace this:

contact_name First Manager

with that:

contact_name manager-1


share|improve this answer

Your Answer


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.