I use Nagios XI 5.6.5 and I faced with a issue, when I attempt to apply config, it takes some seconds and it seems, it's done without error but changed configurations are not applied but when I attempt for it the second time, it's applied fast.
I have tried the case by GUI and API, but I observed the same results, Apply config doesn't work first time but it works next time.
Would you please help me about it ?
Also the API of delete (host delete) don't work as "config/host/<host_name>" , I wanted to delete a host, I faced with error as below:
Code: Select all
curl -XDELETE "http://Server-IP/nagiosxi/api/v1/config/host/testapihost?apikey=API-KEY&pretty=1&applyconfig=1"
{
"error": "Missing required variables",
"missing": [
"host_name"
]
}
Code: Select all
curl -XDELETE "http://Server-IP/nagiosxi/api/v1/config/host?apikey=API-KEY&pretty=1&host_name=testapihost"