Page 1 of 1

Issue with Bulk Host Cloning and Import

Posted: Wed Oct 24, 2018 1:49 pm
by gcox
We currently are having issues with the Bulk Host Cloning and Import tool. We have worked through some troubleshooting steps shown here: https://support.nagios.com/forum/viewto ... 16&t=49855

When we go through and verify the files, it throws an error and says that there are errors with max_check_attempts in other machines. It looks like this is overwriting existing good config files, but we aren't sure how we should fix this.

Re: Issue with Bulk Host Cloning and Import

Posted: Wed Oct 24, 2018 3:57 pm
by benjaminsmith
Hi @gcox,

If you are getting an error verifying configs, there maybe some incomplete hosts/services from running the Bulk Host Cloning wizard. As noted in the other post, there was a minor format change to the object configuration data format in updated versions, so before using the Bulk Host Cloning and Import wizard, it's necessary to go to the CCM > Config File Management and reset the configs:

Delete Files
Write Configs
Verify Files
Restart Nagios Core

You don't need to worry about overwriting existing good config files, as Write Configs only rewrites the object.cache file used to access config data.

Please let me now if you able to resolve the issue.

Re: Issue with Bulk Host Cloning and Import

Posted: Thu Oct 25, 2018 8:52 am
by gcox
It looks like we are still having errors when we verify the configs. Do we go ahead and restart Nagios Core, or do we need to fix the problematic config files prior to restarting?

Re: Issue with Bulk Host Cloning and Import

Posted: Thu Oct 25, 2018 10:45 am
by lmiltchev
Nagios cannot start/restart with config errors. You would need to fix those errors before restarting nagios.

Did you remove the erroneous configs for the host/services, in the CCM PRIOR to running the steps below?

CCM -> Tools -> Config File Management
Delete Files
Write Configs
Verify Files

When you go to the CCM, you would see all of the "cloned" host/services as "Not Applied". Select these configs and delete them. Next, run the steps listed above. If there are no config errors, you can restart nagios.

Re: Issue with Bulk Host Cloning and Import

Posted: Wed Oct 31, 2018 10:18 am
by gcox
It looks like one of the previous administrators added config files in the backend manually instead of via the frontend. We noticed that the comments in the cfg files mention to "...import your configs into the CCM by placing them in the 'import' directory." We assume that if a file goes in here, then it should be ingested and overwrite any existing cfg files.

We've tried this a couple of times, but we haven't been able to get the good file that was manually created to overwrite the bad one that is generated when we click the "Write Configs" button. Can you tell us how we need to go about importing those config files?

Re: Issue with Bulk Host Cloning and Import

Posted: Wed Oct 31, 2018 11:41 am
by tgriep
Quick question, I am working with you on the ticket you opened, is it alright to close this post and continue exclusively in the ticket?

Re: Issue with Bulk Host Cloning and Import

Posted: Wed Oct 31, 2018 11:42 am
by gcox
Yes, that's good with me.