Page 1 of 1

Cant Delete a Host Group

Posted: Fri Nov 01, 2013 9:44 am
by scollins
Hi,

Im having trouble deleting a host group called Network - CORE when i try it says

Error: Could not find any hostgroup matching 'Network - CORE' (config file '/usr/local/nagios/etc/services/Network - CORE .cfg', starting on line 28)

Please advise on how to fix this.

Thanks

Re: Cant Delete a Host Group

Posted: Fri Nov 01, 2013 9:52 am
by tmcdonald
I assume this is through the CCM? Is the error showing up when you click delete, or when you click apply config?

Re: Cant Delete a Host Group

Posted: Mon Nov 04, 2013 1:21 am
by scollins
Hi,

Yes thats correct, after i log in Nagios, i navigate to CCM, log in there - then click on host group - search for the host - click delete - it deletes successfully (no errors) upon applying this config it gives the error:

Applying Configuration

Command submitted for processing...
Waiting for configuration verification............
Configuration verification failed.

An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.

View a snapshot of this configuration error

Error: Could not find any hostgroup matching 'Network - CORE' (config file '/usr/local/nagios/etc/services/Network - CORE .cfg', starting on line 28)
Error processing object config files!


Thanks.

Re: Cant Delete a Host Group

Posted: Mon Nov 04, 2013 10:13 am
by tmcdonald
It looks like you might have placed a space before ".cfg" in your Network - CORE config file. Can you post/PM the content of /usr/local/nagios/etc/services/Network - CORE .cfg (removing sensitive information) and confirm whether or not there is a space there?

Re: Cant Delete a Host Group

Posted: Wed Nov 06, 2013 9:24 am
by scollins
I found the problem, it was hanging onto host therefore it could not be deleted.

Thanks.