From 31936ee5e7031cc124a6f96cd0d2b9d50d45ea7a Mon Sep 17 00:00:00 2001 From: Nick Chappell Date: Mon, 28 Jul 2014 20:46:44 -0700 Subject: [PATCH] Added a parameter and default value for the enable_passive_checks parameter; added it to the service object ERB template. --- manifests/object/service.pp | 2 +- templates/object_service.conf.erb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/object/service.pp b/manifests/object/service.pp index e751ca1..6c91a72 100644 --- a/manifests/object/service.pp +++ b/manifests/object/service.pp @@ -23,8 +23,8 @@ define icinga2::object::service ( $retry_interval = undef, $enable_notifications = undef, $enable_active_checks = undef, + $enable_passive_checks = undef, #Parameters to add: - # * enable_passive_checks # * enable_event_handler # * enable_flap_detection # * enable_perfdata diff --git a/templates/object_service.conf.erb b/templates/object_service.conf.erb index 03f0340..b9e93f6 100644 --- a/templates/object_service.conf.erb +++ b/templates/object_service.conf.erb @@ -11,7 +11,6 @@ */ // Parameters to add: -// * enable_passive_checks // * enable_event_handler // * enable_flap_detection // * enable_perfdata @@ -65,4 +64,7 @@ object Service "<%= @object_servicename %>" { <%- if @enable_active_checks -%> enable_active_checks = <%= @enable_active_checks -%> <%- end -%> + <%- if @enable_passive_checks -%> + enable_passive_checks = <%= @enable_passive_checks -%> + <%- end -%> } \ No newline at end of file