Updating hostgroups via api
Posted: Fri Jul 26, 2019 9:02 am
Hi:
I'm attempting to update a hostgroup (adding 'simon.blah.com' to the 'Elasticsearch-servers' hostgroup via the api using the following:
curl -XPUT "http://watcher/nagiosxi/api/v1/config/h ... lyconfig=1"
simon.blah.com is an actual host in our config and when I execute the above command, it says that it's successful but when I check in the interface, it still returns the same list of servers as before the 'update'?
Am I missing a parameter or is this even possible via the api?
Thanks!
I'm attempting to update a hostgroup (adding 'simon.blah.com' to the 'Elasticsearch-servers' hostgroup via the api using the following:
curl -XPUT "http://watcher/nagiosxi/api/v1/config/h ... lyconfig=1"
simon.blah.com is an actual host in our config and when I execute the above command, it says that it's successful but when I check in the interface, it still returns the same list of servers as before the 'update'?
Am I missing a parameter or is this even possible via the api?
Thanks!