apply Service "apache" { import "service-1minhigh" check_command = "apache-status2" vars.web_address = host.vars.externip assign where host.vars.apachestat == "1" } apply Service "apache" { import "service-1minhigh" check_command = "http-check" vars.web_address = host.vars.externip vars.web_port = host.vars.webport vars.web_uri = host.vars.weburi assign where host.vars.httpcheck == "1" }