Page 1 of 1

Setup issue with contact groups

Posted: Wed Aug 18, 2010 7:10 am
by dxf1
I have 3 hosts thies have been placed in a hostgroup all - ok
I have created a contact which is mamber of a contact group -ok

When I try to use the contact group for a configured host I get the following message ????

Checking services...
Checked 8 services.
Checking hosts...
Warning: Host 'o2esth02' has no default contacts or contactgroups defined!
Warning: Host 'o2estl01' has no default contacts or contactgroups defined!
Error: Contact group 'O2-Contacts' specified in host 'o2estl02' is not defined anywhere!
Checked 5 hosts.
Checking host groups...
Checked 2 host groups.

The contact group is defined but nagios does not appear to see it ???

Regards
Dave

Re: Setup issue with contact groups

Posted: Wed Aug 18, 2010 7:35 am
by TSCAdmin
Post the contents of the cfgs, please ... that'll help diagnose the problem

Re: Setup issue with contact groups

Posted: Wed Aug 18, 2010 11:42 am
by mmestnik
Is there any other output, say:

Code: Select all

Checking contact groups...
Checked 1 contact groups.
You can upload a configsnapshot, that's how we can see your cfg files. Though it's clear that these would not contain the contact group.

Better list the steps used to get to this point, start from when you first entered the CCM to when the config failed to load.

Try removing the contact group from the host and just getting the config to load. Here is how I'd have done it... in an extra safe, cautious manner.
1. Add a contact.
2. Apply.
3. Add a contact group /w member.
4. Apply.
5. Add a host /w contact group.
6. Apply.

Re: Setup issue with contact groups

Posted: Thu Aug 19, 2010 7:56 am
by dxf1
All etc files tared and gzipped
Regards

Dave

Re: Setup issue with contact groups

Posted: Thu Aug 19, 2010 10:17 am
by mmestnik
I'll look at this information, but please tell us what steps you took to get the this point and provide details about the results or each step.

Re: Setup issue with contact groups

Posted: Tue Aug 24, 2010 9:02 am
by dxf1
I have followed exactly the method that you described if I remove the contact group the aply works fine

Re: Setup issue with contact groups

Posted: Wed Aug 25, 2010 1:16 pm
by mmestnik
The etc config folder is intended to always contain a working config.
http://go.nagios.com/faq#Nagios_Core_.2 ... etc_Folder

We need a config snapshot as downloaded from the CCM.

The steps provided were not intended to correct the problem, the idea was to isolate the problem. Looks like you have done that, with the contact group defined but not used by any host then the error you originally reported should be gone.



I'll take a look at your config.