Bulk host cloning and import bug

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Benji
Posts: 9
Joined: Mon Sep 10, 2012 10:10 am

Bulk host cloning and import bug

Post by Benji »

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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Bulk host cloning and import bug

Post by ssax »

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.
Benji
Posts: 9
Joined: Mon Sep 10, 2012 10:10 am

Re: Bulk host cloning and import bug

Post by Benji »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Bulk host cloning and import bug

Post by scottwilkerson »

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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Bulk host cloning and import bug

Post by lmiltchev »

When I attempt to run the bulk host cloning and import tool without checking "Replace Parent Host and/or Hostgroup with the above selected
Address, Name, Hostgroup, Parent Host
10.xx.0.xxx,3cxxx4525.01.vsp.4450,cxxx,3cxxx4525-XXX
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).
Be sure to check out our Knowledgebase for helpful articles and solutions!
Benji
Posts: 9
Joined: Mon Sep 10, 2012 10:10 am

Re: Bulk host cloning and import bug

Post by Benji »

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.
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.
Benji
Posts: 9
Joined: Mon Sep 10, 2012 10:10 am

Re: Bulk host cloning and import bug

Post by Benji »

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 selected
Address, Name, Hostgroup, Parent Host
10.xx.0.xxx,3cxxx4525.01.vsp.4450,cxxx,3cxxx4525-XXX
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).
I do intend to import them into the hostgroup and parent host fields. Please read the text next to the checkbox closer.

"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."
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Bulk host cloning and import bug

Post by lmiltchev »

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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Benji
Posts: 9
Joined: Mon Sep 10, 2012 10:10 am

Re: Bulk host cloning and import bug

Post by Benji »

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.
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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Bulk host cloning and import bug

Post by scottwilkerson »

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.
You should not clear the box if you want them replaced
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked