update host configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zhangxi
Posts: 2
Joined: Tue May 28, 2013 3:39 pm

update host configuration

Post by zhangxi »

I did mistake by adding a parent host when configured a host. Now I can not remove this parent host from configuration, and can not delete this host neither.
What should I do? I prefer working on commands.
Thanks.
--Maria
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: update host configuration

Post by lmiltchev »

Did you try the following?

Code: Select all

CCM->Hosts->Modify->Manage Parents->Remove (from "Assigned")->Close->Save->Apply Configuration
Be sure to check out our Knowledgebase for helpful articles and solutions!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: update host configuration

Post by sreinhardt »

What order are you attempting to remove the configurations? Likely it should go something like:

remove parent from the child host config.
attempt to remove parent services
attempt to remove parent host
attempt to remove child services
attempt to remove child host.

Also can you post the results of a write and verify config please.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
zhangxi
Posts: 2
Joined: Tue May 28, 2013 3:39 pm

Re: update host configuration

Post by zhangxi »

Thanks.
I did mistake. I put parent and child on the same host. So now, I can not remove child and parent.
Is there a way to modify configuration files?

Message 2:

the problem solved by following
CCM->Hosts->Modify->Manage Parents->Remove (from "Assigned")->Close->Save->Apply Configuration
Thanks.
--Maria
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: update host configuration

Post by slansing »

Thank you for sharing the process you followed, does this conclude your questions on this topic?
Locked