Bulk host cloning and import bug
Bulk host cloning and import bug
When I attempt to run the bulk host cloning and import tool without checking "Replace Parent Host and/or Hostgroup with the above selected (if any) instead of adding the given Parent and/or Hostgroup to the new host.", the hostgroup and parent host fields do not import correctly. The hostgroup doesn't import at all, and the parent host imports into the hostgroup field.
Re: Bulk host cloning and import bug
What version of XI are you running? You can find it in the bottom left hand side of the web interface.
Additionally, go to Admin > Manage Config Wizards and let me know the version listed next to the Bulk Host Cloning and Import wizard.
If you click the Check for Updates button does an update show? If it does, try updating it.
Once I get your version I'll lab it up and see if it's a bug in the current version or just your version.
Edit: Please attach a sample line of data that you're using as well.
Additionally, go to Admin > Manage Config Wizards and let me know the version listed next to the Bulk Host Cloning and Import wizard.
If you click the Check for Updates button does an update show? If it does, try updating it.
Once I get your version I'll lab it up and see if it's a bug in the current version or just your version.
Edit: Please attach a sample line of data that you're using as well.
Re: Bulk host cloning and import bug
Currently on XI 5.5.2, the wizard version is 2.1.1 and no updates show for it.
Here is a sanitized sample line for the import.
Address, Name, Hostgroup, Parent Host
10.xx.0.xxx,3cxxx4525.01.vsp.4450,cxxx,3cxxx4525-XXX
Here is a sanitized sample line for the import.
Address, Name, Hostgroup, Parent Host
10.xx.0.xxx,3cxxx4525.01.vsp.4450,cxxx,3cxxx4525-XXX
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bulk host cloning and import bug
If you check that box it will use the parent and hostgroup fields in the input box to replace any existing parents/hostgroups, otherwise it will use the parents/hostgroups assigned to the host you are cloning.
There isn't an option to add additional parent's/hostgroups through this wizard, they would need to be added through the CCM after running the wizard.
There isn't an option to add additional parent's/hostgroups through this wizard, they would need to be added through the CCM after running the wizard.
Re: Bulk host cloning and import bug
When I attempt to run the bulk host cloning and import tool without checking "Replace Parent Host and/or Hostgroup with the above selected
Why are you entering a hostgroup and a parent host in the import fields if you are not going to import them? You should leave leach these two fields empty with an option "IGNORE" (in the drop-down menu).Address, Name, Hostgroup, Parent Host
10.xx.0.xxx,3cxxx4525.01.vsp.4450,cxxx,3cxxx4525-XXX
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Bulk host cloning and import bug
That contradicts what the check box indicates, checked it replaces, unchecked it adds. Either way, it shouldn't be adding the parent host value to the hostgroup field either of the ways the unchecked box is supposed to behave.scottwilkerson wrote:If you check that box it will use the parent and hostgroup fields in the input box to replace any existing parents/hostgroups, otherwise it will use the parents/hostgroups assigned to the host you are cloning.
There isn't an option to add additional parent's/hostgroups through this wizard, they would need to be added through the CCM after running the wizard.
Re: Bulk host cloning and import bug
I do intend to import them into the hostgroup and parent host fields. Please read the text next to the checkbox closer.lmiltchev wrote:When I attempt to run the bulk host cloning and import tool without checking "Replace Parent Host and/or Hostgroup with the above selectedWhy are you entering a hostgroup and a parent host in the import fields if you are not going to import them? You should leave leach these two fields empty with an option "IGNORE" (in the drop-down menu).Address, Name, Hostgroup, Parent Host
10.xx.0.xxx,3cxxx4525.01.vsp.4450,cxxx,3cxxx4525-XXX
"Replace Parent Host and/or Hostgroup with the above selected (if any) instead of adding the given Parent and/or Hostgroup to the new host."
Re: Bulk host cloning and import bug
I tested cloning a host in Nagios XI 5.5.2 and the the wizard version is 2.1.1, and importing the hostgroup & parent. It worked just fine...
You need to make sure that:
1. The hostgroup that you typed in the "Hostgorup" field does exist, and it's typed correctly (case matters)
2. The parent host that you typed in the "Parent Host" field does exist, and it's typed correctly (case matters)
3. You select the "Replace Parent Host and/or Hostgroup with the above selected (if any) instead of adding the given Parent and/or Hostgroup to the new host" check-box before clicking on "Next"
4. You don't have any config errors prior to running the wizard.
You need to make sure that:
1. The hostgroup that you typed in the "Hostgorup" field does exist, and it's typed correctly (case matters)
2. The parent host that you typed in the "Parent Host" field does exist, and it's typed correctly (case matters)
3. You select the "Replace Parent Host and/or Hostgroup with the above selected (if any) instead of adding the given Parent and/or Hostgroup to the new host" check-box before clicking on "Next"
4. You don't have any config errors prior to running the wizard.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Bulk host cloning and import bug
Yes, that functions correctly. Now try that without the box checked and your parent host will be added as a hostgroup and the hostgroup won't be imported at all, which is the issue I'm reporting.lmiltchev wrote:I tested cloning a host in Nagios XI 5.5.2 and the the wizard version is 2.1.1, and importing the hostgroup & parent. It worked just fine...
You need to make sure that:
1. The hostgroup that you typed in the "Hostgorup" field does exist, and it's typed correctly (case matters)
2. The parent host that you typed in the "Parent Host" field does exist, and it's typed correctly (case matters)
3. You select the "Replace Parent Host and/or Hostgroup with the above selected (if any) instead of adding the given Parent and/or Hostgroup to the new host" check-box before clicking on "Next"
4. You don't have any config errors prior to running the wizard.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bulk host cloning and import bug
You should not clear the box if you want them replacedscottwilkerson wrote:If you check that box it will use the parent and hostgroup fields in the input box to replace any existing parents/hostgroups, otherwise it will use the parents/hostgroups assigned to the host you are cloning.
There isn't an option to add additional parent's/hostgroups through this wizard, they would need to be added through the CCM after running the wizard.