Using Nagios API to delete multiple services
Posted: Wed Feb 21, 2018 5:17 am
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!!!
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!!!