Using Nagios API to delete multiple services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ajaylowes
Posts: 1
Joined: Tue Feb 20, 2018 9:48 am

Using Nagios API to delete multiple services

Post 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!!!
kyang

Re: Using Nagios API to delete multiple services

Post 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/
Locked