summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornadir <nadir-technik@nadir.org>2012-02-14 11:15:25 +0100
committerGabriel Filion <lelutin@gmail.com>2012-04-09 21:09:30 -0400
commit6f70941c33e1f621dae4722796314e94a4b23bb6 (patch)
treee507ad7a61abf1105cb3c7550b018f0170ca91c6
parent9da1addfa0607be4390b50000330f7740fc9fb5b (diff)
working nrpe support
-rw-r--r--manifests/service.pp7
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"