Hi Nagios Team,
Am using NagiosXI 5.5.8
Is there an api or any other remote method to delete empty hostgroup or servicegroup ?
Regards,
Vish.
NagiosXI - api to delete empty hostgroup or servicegroup...
Re: NagiosXI - api to delete empty hostgroup or servicegrou
This functionality is not available in Nagios XI 5.5.8, but it will be available in Nagios XI 5.6.0, which should be out by the end of this week. I would recommend upgrading your Nagios XI instance when 5.6.0 is out. Then, if you had two empty groups, e.g. "EMPTY-HG" and "EMPTY-SG", you could delete them by running:
Code: Select all
curl -XDELETE "http://x.x.x.x/nagiosxi/api/v1/config/hostgroup?apikey=xxx&pretty=1&hostgroup_name=EMPTY-HG&applyconfig=1"
curl -XDELETE "http://x.x.x.x/nagiosxi/api/v1/config/servicegroup?apikey=xxx&pretty=1&servicegroup_name=EMPTY-SG&applyconfig=1"Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NagiosXI - api to delete empty hostgroup or servicegrou
Great !!!
Thanks lmiltchev.
You can close this request.
Regards,
Vish.
Thanks lmiltchev.
You can close this request.
Regards,
Vish.
Re: NagiosXI - api to delete empty hostgroup or servicegrou
I am glad I could help! 
Be sure to check out our Knowledgebase for helpful articles and solutions!