not able to make any changes even with CCM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

not able to make any changes even with CCM

Post 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
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: not able to make any changes even with CCM

Post 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.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: not able to make any changes even with CCM

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

Re: not able to make any changes even with CCM

Post 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).
Former Nagios employee
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: not able to make any changes even with CCM

Post by srikanth.kallu »

but how do i resolve it in CCM, can i please get help.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: not able to make any changes even with CCM

Post 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.
Former Nagios employee
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: not able to make any changes even with CCM

Post by srikanth.kallu »

Thank you very much it worked.
Locked