Page 1 of 1

API removal of services not working

Posted: Wed Feb 14, 2018 5:17 am
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

Re: API removal of services not working

Posted: Wed Feb 14, 2018 10:00 am
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.