move all hosts from one host group to another

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nmarbue79
Posts: 31
Joined: Thu Jul 30, 2020 2:17 am

move all hosts from one host group to another

Post by nmarbue79 »

Hello,
I have a question:
I want to move all the hosts from one host group to another en masse, without having to do it with each host individually, is there any way to do it?
Thank you
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: move all hosts from one host group to another

Post by dchurch »

You can do this thru the Bulk Modifications Tool. Go to Configure => Core Config Manager => Bulk Modifications Tool (left menu), then use the Add Host Group(s) function.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
nmarbue79
Posts: 31
Joined: Thu Jul 30, 2020 2:17 am

Re: move all hosts from one host group to another

Post by nmarbue79 »

thanks for your answer
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: move all hosts from one host group to another

Post by benjaminsmith »

Hi,

Glat was helpful. Did you have any other questions or may we close this out?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
nmarbue79
Posts: 31
Joined: Thu Jul 30, 2020 2:17 am

Re: move all hosts from one host group to another

Post by nmarbue79 »

Another question, is that it would be: if I have many hosts that belong to group A, many hosts that belong to group B, how do I do with this tool so that the hosts of group B stop belonging to group B and add them to the hosts of group A.

do I make those hosts not belong to groupB and then add them to group A?


Thank you very much for your time
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: move all hosts from one host group to another

Post by ssax »

There isn't a way to do that in one go, you would need to do this:

Bulk Modifications Tool:
- Add a Host Group
- Select group A at the top
- Click the button for "Select Hosts using Host Groups" and select group B
- Save

Bulk Modifications Tool:
- Remove a Host Group
- Select group B
- Click the "Find Relationships" button
- Check them all
- Save

Apply Configuration.

That will make all hosts in group B members of group A and then remove group B from the hosts you selected.
nmarbue79
Posts: 31
Joined: Thu Jul 30, 2020 2:17 am

Re: move all hosts from one host group to another

Post by nmarbue79 »

Thank you very much for your time
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: move all hosts from one host group to another

Post by scottwilkerson »

nmarbue79 wrote:Thank you very much for your time
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked