aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystem/monitor.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/subsystem/monitor.pp b/manifests/subsystem/monitor.pp
index e57d177..194af53 100644
--- a/manifests/subsystem/monitor.pp
+++ b/manifests/subsystem/monitor.pp
@@ -8,9 +8,15 @@ class nodo::subsystem::monitor(
) {
if $use_nagios != false {
+
+ $command = $check_command ? {
+ 'check_ping' => "check_ping${ping_rate}",
+ default => $check_command,
+ }
+
class{ 'nagios::target':
address => $address,
- check_command => $check_command,
+ check_command => $command,
}
nagios::service::ping { "${::fqdn}":