Page 1 of 1
not able to make any changes even with CCM
Posted: Fri Mar 07, 2014 12:10 pm
by srikanth.kallu
I am getting this error whwn i try to make any changes not sure if any thing changed on my server
Can i get help please
Re: not able to make any changes even with CCM
Posted: Fri Mar 07, 2014 12:21 pm
by slansing
Running the write config files tool is the best way to figure this out from the web interface:
CCM > Tools > Write Config Tool, Click Write, followed by Verify, you should then see a list of error indicating that indeed there was a change done, and whatever it was is invalid. You will need to fix that and then you can apply configuration cleanly.
Re: not able to make any changes even with CCM
Posted: Fri Mar 07, 2014 1:05 pm
by srikanth.kallu
I see this error
RESTART FAILED. CONFIG ERROR:
Error: Host 'TXQAWEB02' cannot be a child/parent of itself
Error: Could not add parent host 'TXQAWEB02' to host (config file '/usr/local/nagios/etc/hosts/TXQAWEB02.cfg', starting on line 14)
I want to delete this host (TXQAWEB02) completely. so i removed that file ( TXQAWEB02.cfg ) from there and when i do CCM--Tools--Write Config Files--restart i still see the file in '/usr/local/nagios/etc/hosts/
Re: not able to make any changes even with CCM
Posted: Fri Mar 07, 2014 1:11 pm
by tmcdonald
You will need to resolve the issue in the CCM otherwise it will still be created on disk when you do the Write, Verify, Apply cycle.
The issue is that you have a host listing itself as its own parent. We disallow this as it would cause all sorts of looping issues, specifically with recursion trying to find the parent of a parent (a la I Am My Own Grandpa).
Re: not able to make any changes even with CCM
Posted: Fri Mar 07, 2014 2:13 pm
by srikanth.kallu
but how do i resolve it in CCM, can i please get help.
Re: not able to make any changes even with CCM
Posted: Fri Mar 07, 2014 2:22 pm
by tmcdonald
tmcdonald wrote:The issue is that you have a host listing itself as its own parent.
You will need to enter the Core Configuration Manager, find the host called "TXQAWEB02" and edit it. You have it listed as its own parent, so you need to click Manage Parents and remove that listing.
Re: not able to make any changes even with CCM
Posted: Fri Mar 07, 2014 3:06 pm
by srikanth.kallu
Thank you very much it worked.