I will discuss this internally. Upgrading our instance is a little bit involved, hence my question about testing on 2012R1.8.lmiltchev wrote:I would really recommend upgrading your Nagios XI instance. We have many bug fixes and added features after 2012R1.8. Please, read the change log here:
http://assets.nagios.com/downloads/nagi ... S-2012.TXT
Deactivated Hosts Aren't Removed from Core
Re: Deactivated Hosts Aren't Removed from Core
Re: Deactivated Hosts Aren't Removed from Core
I did a fresh install of 2012R1.8. Tried to deactivate and delete localhost. In both cases I was warned about dependent relationships...I will discuss this internally. Upgrading our instance is a little bit involved, hence my question about testing on 2012R1.8.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Deactivated Hosts Aren't Removed from Core
Thanks, lmiltchev. Can you recap the steps you performed to make sure I didn't miss something? Please use as much detail as possible.lmiltchev wrote:I did a fresh install of 2012R1.8. Tried to deactivate and delete localhost. In both cases I was warned about dependent relationships...I will discuss this internally. Upgrading our instance is a little bit involved, hence my question about testing on 2012R1.8.
Re: Deactivated Hosts Aren't Removed from Core
This is WAI, as the services for localhost depend on it. If you remove the host before the services (in this case) you will receive the error.lmiltchev wrote: In both cases I was warned about dependent relationships...
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Deactivated Hosts Aren't Removed from Core
1. I downloaded the 2012R1.8 tarball to my "/tmp" directory, un-tared it, cd-ed to "/tmp/nagiosxi" directory and ran "./fullinstall".Thanks, lmiltchev. Can you recap the steps you performed to make sure I didn't miss something? Please use as much detail as possible.
2. I logged in the CCM->Hosts, clicked on the "Yes Active" button (trying to deactivate localhost), and saw the error message about dependent relationships (my first screenshot).
3. I clicked on the "Delete" action button (trying to delete localhost), and saw another error message about dependent relationships (my second screenshot).
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Deactivated Hosts Aren't Removed from Core
So you didn't apply the patch from Steve?lmiltchev wrote:1. I downloaded the 2012R1.8 tarball to my "/tmp" directory, un-tared it, cd-ed to "/tmp/nagiosxi" directory and ran "./fullinstall".Thanks, lmiltchev. Can you recap the steps you performed to make sure I didn't miss something? Please use as much detail as possible.
2. I logged in the CCM->Hosts, clicked on the "Yes Active" button (trying to deactivate localhost), and saw the error message about dependent relationships (my first screenshot).
3. I clicked on the "Delete" action button (trying to delete localhost), and saw another error message about dependent relationships (my second screenshot).
Re: Deactivated Hosts Aren't Removed from Core
I applied it to a newer version of XI and it worked as expected. I didn't apply it on Nagios XI 2012R1.8, but this didn't seem to make a difference... I am not 100% sure what the issue is. I tried to follow the steps that you outlined:
During my tests:Here's what happens:
1. Deactivate a host (and possibly another type of change) that causes the "Verify" step to fail.
2. Apply Configuration (this fails).
3. CCM reverts the config files to their previous state, but leaves the database settings unchanged.
4. User fixes the error.
5. Apply Configuration (this succeeds this time).
I tried to deactivate or delete localhost, but I would get the "Item localhost cannot be disabled because it has dependent relationships" error. "Verify" didn't fail for me, since the host was NOT deactivated.1. Deactivate a host (and possibly another type of change) that causes the "Verify" step to fail.
Apply Configuration didn't fail either.2. Apply Configuration (this fails).
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Deactivated Hosts Aren't Removed from Core
Is there an option to enable/disable the checking of dependencies before delete/deactivate operations?lmiltchev wrote:I applied it to a newer version of XI and it worked as expected. I didn't apply it on Nagios XI 2012R1.8, but this didn't seem to make a difference... I am not 100% sure what the issue is. I tried to follow the steps that you outlined:
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Deactivated Hosts Aren't Removed from Core
No, not that I know of, the reason being is the dependencies are made in the database as well, and it won't let you break that chain because of this.
Re: Deactivated Hosts Aren't Removed from Core
slansing: There can't be any dependencies (at least in the form of an enforced relationship) because my instance currently allows me to deactivate/delete and break the config.slansing wrote:No, not that I know of, the reason being is the dependencies are made in the database as well, and it won't let you break that chain because of this.
We are currently upgrading to 2012R2.8 and will test again when that is complete.