Page 1 of 1

no default contacts or contactgroups defined

Posted: Fri Jun 10, 2011 2:19 pm
by c0ldf1r3
Hello,
When I made some changes to varios hosts and I went to apply the configuration I am getting the following errors which I was not getting before.

This error now appears for all of the hosts I have defined.

I checked the services themselves and none are set to null. all are set to standard.

Please any help?


contacts or contactgroups defined!
Warning: Host 'xxxxxx' has no default contacts or contactgroups defined!
Warning: Host 'xxxxxx' has no default contacts or contactgroups defined!
Warning: Host 'xxxxxx' has no default contacts or contactgroups defined!
Warning: Host 'xxxxxx' has no default contacts or contactgroups defined!
Warning: Host 'xxxxxx' has no default contacts or contactgroups defined!
Warning: Host 'xxxxxx' has no default contacts or contactgroups defined!

Re: no default contacts or contactgroups defined

Posted: Fri Jun 10, 2011 2:59 pm
by lmiltchev
Can you locate the "contacts.cfg" and "contactgroups.cfg" files? Is there any info in them?
You can type in terminal: "locate contacts.cfg" and "locate contactgroups.cfg" respectively. Then open them in a text editor to view the contents.
Note: You may have to run "updatedb" command first.

Re: no default contacts or contactgroups defined

Posted: Fri Jun 10, 2011 8:10 pm
by c0ldf1r3
I ran the updatedb and also checked the contacts.cfg and contactgroup.cfg.

All of the users are in the contacts.cfg and the contactgroups.cfg contain the proper information.

this all started suddenly.

Re: no default contacts or contactgroups defined

Posted: Mon Jun 13, 2011 10:26 am
by mguthrie
Sent by email as well:
What you're seeing is not actually a config error, it's more of a
"notice." The latest version of Nagios checks for a few "best
practices" in the configs and basically gives you a heads up that at the
moment you don't have any contacts for any of those hosts in case
something goes down. Nagios assumes you would want this, but that's not
always the case. If you don't have a need for these hosts to have a
default notification contact then these messages can be ignored.