I have installed Nagios Core 4.01 on Centos 6 and all is working fine.
Initially I just set up using the default setup (adjusted to suit my environment). My problem is with email notifications.
If I leave the hosts to inherit the admins contact_group from the template it all works fine. Email alertss get sent out as expected.
I want to have different notification groups for different hosts, so added a second contactgroup to contacts.cfg with suitable contact defined:
define contact{
contact_name secondline
use generic-contact
alias James
email [email protected]
}
define contactgroup{
contactgroup_name secondline
alias Second Line Support
members secondline
}
I then added the contact_groups variable to the host:
define host{
use cluster-host
host_name Cluster 2
address 192.168.10.222
hostgroups cluster-hosts
contact_groups secondline
}
Alerts for Cluster 2 still come to the default admins contacts group, but not to the new secondline group. I expected the host setting to override the template setting.
Can anybody see what I am doing wrong? Seems pretty straight forward to me
Thanks
Colin