Nagios XI 5.4.0 Rest API
Posted: Wed Jan 11, 2017 3:40 pm
Hi,
I try to use the API to create couple host and use template for Notification setting. When I try to create it I have error: missing required variables.
Do you have a workaround to force that type of usage please.
Thank you!!
I try to use the API to create couple host and use template for Notification setting. When I try to create it I have error: missing required variables.
Do you have a workaround to force that type of usage please.
Code: Select all
curl -XPOST "http://slpmon0034/nagiosxi/api/v1/config/host?apikey=APIKEY&pretty=1" -d "host_name=sldlog0398&address=172.26.14.7&use=xiwizard_linuxserver_host&max_check_attempts=5&check_intervalcheck_interval=5&retry_interval=1&check_period=xi_timeperiod_24x7&icon_imageicon_image=redhat.pngredhat.png&statusmap_image=redhat.png&_xiwizard=linux-server&&applyconfig=1"
{
"error": "Missing required variables",
"missing": [
"notification_interval",
"notification_period",
"contacts OR contact_groups"
]
}