Code: Select all
curl -XPOST "http://<HOSTNAME>/nagiosxi/api/v1/config/service?apikey=<APIKEY>&pretty=1" -d "host_name=testapihostapply&service_description=PING2&check_command=check_ping\!3000,80%\!5000,100%&check_interval=5&retry_interval=5&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7&applyconfig=1"
{
"success": "Successfully added testapihostapply :: PING2 to the system. Config applied, Nagios Core was restarted."
}
Where can I start looking to troubleshoot this, and why would I still receive a success message when the host/service was not actually added into XI?