API host group migration Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kunalbangia
Posts: 1
Joined: Sun Jun 03, 2018 9:04 pm

API host group migration Nagios XI

Post by kunalbangia »

Hello everyone,

We already have a created hostgroup with all the host. We are Trying to copy all hosts from one host group to another hostgroup using nagios api. Automate it as much as I can as there are a lot of hosts and cannot be done manually. Can anyone help me with the command. I would be really thankful.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: API host group migration Nagios XI

Post by npolovenko »

Hello, @kunalbangia. Are you looking for the best way to accomplish your task or are you more interested in finding a way to automate this with the API? I'm don't think you can move hosts with the API. You could add new hosts that inherit from a template, and have that template be a part of the new host group. This seems a bit complicated for this task.
Can you simply add hosts to the new host group holding a CRL or a SHIFT button?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked