17.01.2017 22:10, Anton Gorlov пишет: >>> custom variable in service definition example is >>> (vars.notification.custom=true ) >>> apply Service for (http_vhost => config in host.vars.http_vhosts) { >>> import "generic-service" >>> check_command = "http" >>> vars += config >>> vars.notification.custom=true >>> } >> >> this looks good for me. Have you tried it? > test in progress now :)
working with apply Service for (http_vhost => config in host.vars.http_vhosts) { import "generic-service" check_command = "http" vars += config vars.notification_custom = true } and apply Notification "testing_notify_service" to Service { import "test-notification" ... assign where service.vars.notification_custom } I've just guessed service.vars, but couldn't find it in the documentation _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users