Contact Groups not working
Posted: Thu Feb 16, 2012 1:49 pm
I can not get my Nagios Core installation to send notifications to contact groups. It is only sending to what I have defined as the nagiosadmin, which is two people.
I created this template for windows trying to use the new group, (to no avail):
and here is a sample host:
I am only sending notifications to the nagiosadmin, and I can't figure out why. It doesn't seem to be even trying to send to other contacts.
Code: Select all
Contacts:
define contact{
contact_name nagiosadmin ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user
email [email protected],[email protected]
}
define contact{
contact_name dba1
use generic-contact
alias dba1
email [email protected]
}
define contact{
contact_name dba2
use generic-contact
alias dba2
email [email protected]
}
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members nagiosadmin
}
define contactgroup{
contactgroup_name dba
alias dba
members dba1,dba2
}
Code: Select all
define host{
name windows-db ; The name of this host template
use generic-host ; Inherit default values from the generic-host template
check_period 24x7 ; By default, Windows servers are monitored round the clock
check_interval 5 ; Actively check the server every 5 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 10 ; Check each server 10 times (max)
check_command check-host-alive ; Default command to check if servers are "alive"
notification_period 24x7 ; Send notification out at any time - day or night
notification_interval 30 ; Resend notifications every 30 minutes
notification_options d,r ; Only send notifications for specific host states
contact_groups dba ; Notifications get sent to the admins by default
hostgroups windows-servers ; Host groups that Windows servers should be a member of
register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
}Code: Select all
define host{
use windows-server <---- I have set this to my other template windows-db, that doesn't work either.
host_name report2
alias report2
address 10.0.0.25
parents Core2 2960
contact_groups dba,admins
}