First of all im pretty new, im working as a Student in a Company and Icinga is my current Project.
I had the following Problem as i cannot create a Service via the REST API, a host can be created but a service isnt working.
But after everything i tried i get the Response 200 everytime, and only a list of already present Services.
Thanks for the help.
Icinga Web 2 Version 2.10.1
PHP Version 7.4.3
Director Version - Master (i didnt find any other version number but i installed 2 months ago so i think 1.9.1)
Icinga2 Version : r2.13.3-1
Ubuntu : Platform version: 20.04.4 LTS (Focal Fossa)
Apache : Apache/2.4.41
If it is a service, I wouldn’t change “check_interval”,“retry_interval” because these settings are in your template and should’t be changed via api because you can’t set them in gui for the services individually.
in the first post you want to create a service, now you want to create a service template.
Yeah sorry, i had too many thoughts at once, at the moment i cannot create a service via Rest, im sure it works but even in the new Documentation there is no Example for this.
Until i know more i work with the Apply service, its basically the same for me.
I got a single service to work
./director_curl.sh POST director/service \
'{
"object_name": "d_ssh",
"object_type": "object",
"host" : "testhost"
"imports": ["service_5m"],
"check_command": "ssh"
}'
Thanks for your help ^^