diff options
-rw-r--r-- | manifests/service.pp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/service.pp b/manifests/service.pp index 0d95381..ae112c1 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -21,7 +21,12 @@ define nagios::service ( $real_name = "${hostname}_${name}" if ($use_nrpe == 'true') { - $real_check_command = "check_nrpe!$check_command!\"$nrpe_args\"" + if ($nrpe_args != '') { + $real_check_command = "check_nrpe!$check_command!\"$nrpe_args\"" + } + else { + $real_check_command = "check_nrpe_1arg!$check_command" + } } else { $real_check_command = "$check_command" |