Bulk Host tool and Hostgroups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Bulk Host tool and Hostgroups

Post 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.
Andrew J. - Do you even grok?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Bulk Host tool and Hostgroups

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Bulk Host tool and Hostgroups

Post 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.
Andrew J. - Do you even grok?
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Bulk Host tool and Hostgroups

Post 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.
You do not have the required permissions to view the files attached to this post.
Andrew J. - Do you even grok?
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Bulk Host tool and Hostgroups

Post 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.
Andrew J. - Do you even grok?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Bulk Host tool and Hostgroups

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Bulk Host tool and Hostgroups

Post 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.
Andrew J. - Do you even grok?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Bulk Host tool and Hostgroups

Post by abrist »

Fair enough. Sounds like a good feature request. You can open a feature request at: tracker.nagios.com
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Bulk Host tool and Hostgroups

Post by vAJ »

but of course!

Image
Andrew J. - Do you even grok?
Locked