Deactivated Hosts Aren't Removed from Core
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Deactivated Hosts Aren't Removed from Core
Fix has been applied to the XI 2014 TRUNK and is undergoing testing.
Re: Deactivated Hosts Aren't Removed from Core
Thanks, Scott. When you have it, could you give me a bug ID or some identifier to (quickly) ask about the status of the fix in the future?scottwilkerson wrote:Now I understand what you are saying.
I will add this to our internal TODO, I believe I know how we can accomplish it, but it will be a major change that will require significant testing...
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Deactivated Hosts Aren't Removed from Core
I don't have a "bug ID", but it will be in 2014. However the changes were pretty straight forward, if you want I will attach what needs to be changed here to apply to a 2012 install if you would like to test it...
Install this CCM through Admin -> Manage Components unzip this file and place in /usr/local/nagiosxi/scripts
Install this CCM through Admin -> Manage Components unzip this file and place in /usr/local/nagiosxi/scripts
You do not have the required permissions to view the files attached to this post.
Re: Deactivated Hosts Aren't Removed from Core
Is this a replacement for your earlier ccm.zip or in addition?scottwilkerson wrote:I don't have a "bug ID", but it will be in 2014. However the changes were pretty straight forward, if you want I will attach what needs to be changed here to apply to a 2012 install if you would like to test it...
Install this CCM through Admin -> Manage Components unzip this file and place in /usr/local/nagiosxi/scripts
Is there a way to rollback the changes if it fails or doesn't fix the problem? (I haven't messed with Manage Components yet)
EDIT: We're running Nagios XI 2012R1.8
Re: Deactivated Hosts Aren't Removed from Core
Yes, it is a replacement.Is this a replacement for your earlier ccm.zip or in addition?
Yes. You can install the previous ccm component by going to Admin->Manage Components->Browse...->Upload ComponentIs there a way to rollback the changes if it fails or doesn't fix the problem? (I haven't messed with Manage Components yet)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Deactivated Hosts Aren't Removed from Core
Where do I get the current ccm? I presume there's a way to download it from XI? or is it stored on the file system somewhere?lmiltchev wrote:Yes. You can install the previous ccm component by going to Admin->Manage Components->Browse...->Upload Component
EDIT: Under Manage Components, there's no download link for CCM like there are on others.
Re: Deactivated Hosts Aren't Removed from Core
If you installed the ccm.zip that was provided by scottwilkerson (Tue Jan 28, 2014 1:17 pm; page 2), you can re-download it and install it.
If you haven't installed it but you want to save the current ccm, you can probably zip all of the files in the "/usr/local/nagiosxi/html/includes/components/ccm" directory as "ccm.zip", and install it later if you need to.
If you haven't installed it but you want to save the current ccm, you can probably zip all of the files in the "/usr/local/nagiosxi/html/includes/components/ccm" directory as "ccm.zip", and install it later if you need to.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Deactivated Hosts Aren't Removed from Core
Ah, ok. So the ZIP file is just a copy of the /usr/local/nagiosxi/html/includes/components/ccm directory. Sure, I just zip that up before testing the new ccm.zip. Thanks for the info!lmiltchev wrote:If you installed the ccm.zip that was provided by scottwilkerson (Tue Jan 28, 2014 1:17 pm; page 2), you can re-download it and install it.
If you haven't installed it but you want to save the current ccm, you can probably zip all of the files in the "/usr/local/nagiosxi/html/includes/components/ccm" directory as "ccm.zip", and install it later if you need to.
I'm presuming the second ZIP file fixes the Apply Configuration issue (the second issue listed)?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Deactivated Hosts Aren't Removed from Core
perfectHossy wrote:Ah, ok. So the ZIP file is just a copy of the /usr/local/nagiosxi/html/includes/components/ccm directory. Sure, I just zip that up before testing the new ccm.zip
Correct, actually, they both do..Hossy wrote: I'm presuming the second ZIP file fixes the Apply Configuration issue (the second issue listed)?
Re: Deactivated Hosts Aren't Removed from Core
Unfortunately, this didn't fix the problem. I was still able to deactivate a host that I know would cause an invalid config. And, upon fixing the error after running Apply Configuration, the deactivated host CFG file was never deleted.scottwilkerson wrote:I don't have a "bug ID", but it will be in 2014. However the changes were pretty straight forward, if you want I will attach what needs to be changed here to apply to a 2012 install if you would like to test it...
Install this CCM through Admin -> Manage Components unzip this file and place in /usr/local/nagiosxi/scripts
EDIT: I deactivated two hosts. One through the checkbox/list method and one through clicking on the host and unchecking the Active checkbox.