Page 1 of 1

Could not find matching hostgroup

Posted: Thu Jul 26, 2012 5:10 am
by mindspring
Hi There,

I am getting this error when starting Nagios. I transferred this post from the general board.

----------


Re: Duplicate Entry Issue

Postby mindspring » Tue Jul 24, 2012 1:37 pm
Thanks for your help Scott, that got rid of that particular error.

Now I am getting this error:

Error: Could not find any hostgroup matching 'windows-servers' (config file '/usr/local/nagios/etc/hosts/cobalt.sam.cpt.cfg', starting on line 14)
Error processing object config files!

Yet when I check the host Cobalt, none of the hostgroups are selected and there is no such host group called windows-servers, only with description Windows Servers




Re: Duplicate Entry Issue

Postby scottwilkerson » Tue Jul 24, 2012 3:51 pm
Ok, there likely used to be one.

Go to Configure -> CCM -> hosts -> cobalt.sam.cpt -> modify
Click the notepad by hostgroups
Click save (not abort)
Click Save again

Then
Configure -> CCM -> Tools -> Write Config Files
Click the top 3 items, if there are no errors click the restart option, if you get new errors about Duplicate definition do the following then repete the top 3 items in Configure -> CCM -> Tools -> Write Config Files

ONLY ONCE There are no Errors, click the 4th button. If there are errors we need to fix them and then repeat step 3).

Once there are no errors click the 4th Go button, then wait a couple minutes.

Go to Configure -> CCM -> Apply Configuration -> Apply Configuration

User avatar
scottwilkerson

Posts: 2217
Joined: Tue Nov 15, 2011 11:11 pm

Top

Re: Duplicate Entry Issue

Postby mindspring » Wed Jul 25, 2012 4:35 pm
Thanks, I tried that and I get exactly the same error

Error: Could not find any hostgroup matching 'windows-servers' (config file '/usr/local/nagios/etc/hosts/cobalt.sam.cpt.cfg', starting on line 14)
Error processing object config files!


Is there any other place this could be lurking?

Re: Could not find matching hostgroup

Posted: Thu Jul 26, 2012 9:12 am
by lmiltchev
It would be easier to troubleshoot your issue if you could take a look at your latest configuration snapshot. Could you, please, open a support ticket by e-mailing us at [email protected]?

Re: Could not find matching hostgroup

Posted: Fri Jul 27, 2012 6:42 am
by mindspring
Ok done

Thanks