API removal of services not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ibnetworking
Posts: 19
Joined: Mon Jan 16, 2017 4:32 am

API removal of services not working

Post by ibnetworking »

Hello,

our API calls appear to have no effect all of a sudden, but only for removal of services.
API to delete a service returns a successful call, but the alert is still there:

Code: Select all

{
    "success": "Removed myserver :: myservice from the system. Config applied, Nagios Core was restarted."
}
I tried without the apply=1 and manually reconfiguring it, to no avail.

Do you have any ideas where to start looking? This is very strange and causing issues because we had this fully automated.
We are using XI 5.4.4
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: API removal of services not working

Post by scottwilkerson »

Can you confirm that a regular Apply Configuration is working successfully through the UI before running the API command.

If there is a configuration error, the system will roll back to use the config before the host/service was removed, so you will need to fix the error and then continue.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked