rest api service check creation add template param
Posted: Wed Nov 25, 2015 7:11 pm
i would like to know if it is possible to use the restapi to create a service and attach it to a template so that i don't have to pass all parameters. something like the below but with a template so that the numerous service checks i am creating have inherited settings, it seems like this should work but it sets the options to 0 or disabled that are ''. Also, how do i get the service name to match the service_description instead of the host_name?
"host_name=#{host_name}&service_description=dev-oracle-query-dw-#{param_row['SUBJECT_AREA']}-#{param_row['SESSION_NAME']}&"\
"check_command=check_ll_oraclequery_dw_batch_single_lldwd_app\!#{param_row['SUBJECT_AREA']}\!#{param_row['SESSION_NAME']}&check_interval=''&retry_interval=''&max_check_attempts=''&check_period=''&contacts=''¬ification_interval=''¬ification_period=''&use=ll_oraclequery_service_prod_15_min&applyconfig=1"
"host_name=#{host_name}&service_description=dev-oracle-query-dw-#{param_row['SUBJECT_AREA']}-#{param_row['SESSION_NAME']}&"\
"check_command=check_ll_oraclequery_dw_batch_single_lldwd_app\!#{param_row['SUBJECT_AREA']}\!#{param_row['SESSION_NAME']}&check_interval=''&retry_interval=''&max_check_attempts=''&check_period=''&contacts=''¬ification_interval=''¬ification_period=''&use=ll_oraclequery_service_prod_15_min&applyconfig=1"