Page 1 of 1

Copy hostgroup from one NagiosXI into other - all thru UI

Posted: Wed Nov 29, 2017 12:33 pm
by nagwindmon
Team,
Just a quick question: I'm in urgent need to clone one HostGroup (with about 900 hosts in it) from NagiosXI Server 1 into Server 2.
Can this be all accomplish from UI?
Thanks!

Re: Copy hostgroup from one NagiosXI into other - all thru U

Posted: Wed Nov 29, 2017 3:02 pm
by kyang
Do you have the same hosts on the XI server 2? If not you will run into errors if Nagios can't find the same exact hosts listed in the host group when you place it into your XI server 2.

Re: Copy hostgroup from one NagiosXI into other - all thru U

Posted: Wed Nov 29, 2017 3:36 pm
by nagwindmon
I do not. Sorry, if I wasn't clear: server # 2 does not have neither, not that particular hostgroup or hosts. That would be a new hostgroup along with those hosts copied from server #1.

Re: Copy hostgroup from one NagiosXI into other - all thru U

Posted: Wed Nov 29, 2017 4:09 pm
by kyang
Otherwise, if you did have all of the hosts set up in server 2, then you could copy the hostgroup from server 1 to server 2.

If you go to XI Home --> Configure --> Core Config Manager --> Host groups --> (Find the host group you want and click on the blue disk under the actions field)

This should allow you to view the config, and you can just select the host group by highlighting and copy it over to your other Nagios XI server.

Put it into the hostgroups.cfg

Code: Select all

/usr/local/nagios/etc/hostgroups.cfg
Then use the import config files prep tool, and then apply the update (Documentation listed below)

https://assets.nagios.com/downloads/nag ... ios-XI.pdf