Hello,
I'm trying to add host through the API, the response message is correct but it doesn't seem to be created on NagiosXI
Version : 5.7.5
Step :
curl -XPOST "http://nagiosxiproduction/nagiosxi/api/v1/config/host?apikey=APIKEY&pretty=1" -d "host_name=testapihost&address=127.0.0.1&check_command=check_ping\!3000,80%\!5000,100%&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7&applyconfig=1"
response: "success": "Added testapihost to the system. Config applied, Nagios Core was restarted."
But when i search the host"testapihost" in nagiosXI, it doesn't exist, and the system wasnt restarted.
I've tested the same step on a NagiosXI lab without any configuration, version 5.9.2 and it worked.
Thanks in advance for your help.