Page 1 of 1
Bulk Host tool and Hostgroups
Posted: Wed Jun 05, 2013 2:27 pm
by vAJ
in 2012v1.6, if you use the Bulk Copy/Import tool and use a system already assigned to one host group, the new hosts gain that membership as well as whatever services you select for copying.
Problem is that it's very frustrating to remove those new hosts from the source's hostgroup. I've tried in the CCM Hostgroup config and Host config and legacy CCM, you can see them greyed out like they are not allowed to be added (since they already are) but you can't delete them since they don't show up in the members pane.
The only way I've found to do it is to go through the Host Details screen and reconfigure the host. Each one. Manually.
Meh. Not liking this.
Re: Bulk Host tool and Hostgroups
Posted: Wed Jun 05, 2013 2:48 pm
by lmiltchev
Depending on how you did this:
added members to a hostgroup (CCM->Host Groups->...->Manage Hosts->Add Selected)
or
added hostgroup to a host (CCM->Hosts->...->Manage Hostgroups->Add Selected)
you should be able to remove them the same way. I am not sure why you need to remove them one-by-one.
Re: Bulk Host tool and Hostgroups
Posted: Wed Jun 05, 2013 3:01 pm
by vAJ
How I added the source host?
The new servers are assuming the membership of the source host used in the bulk tool. Nothing in the CCM is allowing me to remove these NEW hosts from the assumed hostgroup. I have to go through the Host Details and reconfigure.
Re: Bulk Host tool and Hostgroups
Posted: Wed Jun 05, 2013 3:22 pm
by vAJ
Hopefully you can see this well enough.
The hosts on the left pane with the red bar beside are greyed out (because they are members of the hostgroup) but are not listed on the right pane which prevents me from deleting them here.
Re: Bulk Host tool and Hostgroups
Posted: Wed Jun 05, 2013 3:40 pm
by vAJ
And I'm not sure I like the "you have to remove it the way you added it" methodology.
If a host/service is a member of a group, I should be able to remove it in any fashion. Whether editing the host/service properties or the group properties.
Re: Bulk Host tool and Hostgroups
Posted: Wed Jun 05, 2013 4:11 pm
by sreinhardt
The reason we do it this way is to prevent faulty coding logic by assuming that when removing it from one location, you want to modify all other configurations that contain the same data. There are many times where just blindly removing a group or host from configs that you are not actively modifying could break much more. In addition, it would be a fair amount more logic intensive to iterate through all inheritance and such to correctly display this per object, much less add\remove and make sure that this is not a duplicate anywhere else. Unfortunately since this can be added in so many more ways than just host\group modifications, its not viable.
Re: Bulk Host tool and Hostgroups
Posted: Thu Jun 06, 2013 12:02 pm
by vAJ
That's understandable.
In that case, I'd like to see the ability to opt out of copying the hostgroup/servicegroup details from the source host in the Bulk Host Cloning & Import wizard.
Re: Bulk Host tool and Hostgroups
Posted: Thu Jun 06, 2013 1:16 pm
by abrist
Fair enough. Sounds like a good feature request. You can open a feature request at: tracker.nagios.com
Re: Bulk Host tool and Hostgroups
Posted: Thu Jun 06, 2013 1:47 pm
by vAJ
but of course!
