diff options
-rw-r--r-- | manifests/defines.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/defines.pp b/manifests/defines.pp index c789c8d..154d52d 100644 --- a/manifests/defines.pp +++ b/manifests/defines.pp @@ -88,7 +88,8 @@ define nagios::service( $normal_check_interval = 5, $check_period = "24x7", $nagios_contact_groups_in = $nagios_contact_groups, - $service_description = ''){ + $service_description = 'absent') +{ # this ensures nagios internal check, that every # service has it's host @@ -113,9 +114,8 @@ define nagios::service( check_period => $check_period, notify => Service[nagios], } - # if no service_description is set it is a namevar case $service_description { - '': { + 'absent': { Nagios_service[$name]{ service_description => $name, } |