Page 1 of 1

Using Nagios API to delete multiple services

Posted: Wed Feb 21, 2018 5:17 am
by ajaylowes
Hi ,

I am working on writing a script which deletes all the service checks of a server.
I see that to delete any service check we use below rest call:
http://hostaddress/nagiosxi/api/v1/conf ... ption=PING Usage&applyconfig=1

This deletes only one service , but i need to delete all services of a server.

Once that is achieved , i want to delete that server from any host group it is part of .

Please let me know how this can be acheived in Nagios.

Thanks in Advance!!!

Re: Using Nagios API to delete multiple services

Posted: Wed Feb 21, 2018 5:05 pm
by kyang
Currently, there is no way to do this through the REST API.

Here's another forum thread that speaks about it also.

https://support.nagios.com/forum/viewto ... =6&t=46751

The best thing to do is wait for Nagios XI 5.5 to see more API endpoints.

https://www.nagios.com/roadmaps/