Cant Delete a Host Group

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
scollins
Posts: 12
Joined: Fri Nov 01, 2013 9:25 am

Cant Delete a Host Group

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Cant Delete a Host Group

Post by tmcdonald »

I assume this is through the CCM? Is the error showing up when you click delete, or when you click apply config?
Former Nagios employee
scollins
Posts: 12
Joined: Fri Nov 01, 2013 9:25 am

Re: Cant Delete a Host Group

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Cant Delete a Host Group

Post 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?
Former Nagios employee
scollins
Posts: 12
Joined: Fri Nov 01, 2013 9:25 am

Re: Cant Delete a Host Group

Post by scollins »

I found the problem, it was hanging onto host therefore it could not be deleted.

Thanks.
Locked