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.
API host group migration Nagios XI
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: API host group migration Nagios XI
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?
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.