Currently I have a single contacts.cfg file. From one I can see, it appears that it’s split up into 2 sections. The top half lists that Contacts and the bottom half lists the Contact_Groups.
Initially I had only 1 Contact and 1 Contact Group configured in this file and all hosts in the hosts.cfg file where configured so that Nagios would notify this single Contact Group. This has worked as it should for the last year.
Now, I have created 2 additional Contacts and 2 additional Contact Groups in this contacts.cfg file. Also, I’ve changed the contact_groups option for one of my hosts and pointed it to one of the new Contact Groups. However, when this host fails a check an email continues to be sent to my original group whose members are not suppose to receive notifications for this host. Nobody in the Contact Group that is supposed to get the email notification receives it.
Below is a sample of my contacts.cfg:
members root, DB
Sample of hosts.cfg:
use generic-host ; Name of host template to use
alias NT Server #1
Thanks for any assistance.