Re: Deactivated Hosts Aren't Removed from Core
Posted: Wed Jan 29, 2014 10:06 am
Fix has been applied to the XI 2014 TRUNK and is undergoing testing.
Support for Nagios products and services
https://support.nagios.com/forum/
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...
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
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)
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
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.
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)?
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