no default contacts or contactgroups defined

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
c0ldf1r3
Posts: 22
Joined: Thu May 05, 2011 8:34 pm

no default contacts or contactgroups defined

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: no default contacts or contactgroups defined

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
c0ldf1r3
Posts: 22
Joined: Thu May 05, 2011 8:34 pm

Re: no default contacts or contactgroups defined

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: no default contacts or contactgroups defined

Post 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.
Locked