aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/subsystem/monitor.pp11
1 files changed, 8 insertions, 3 deletions
diff --git a/manifests/subsystem/monitor.pp b/manifests/subsystem/monitor.pp
index 015f43c..59e453e 100644
--- a/manifests/subsystem/monitor.pp
+++ b/manifests/subsystem/monitor.pp
@@ -1,14 +1,17 @@
class nodo::subsystem::monitor(
$type = 'vserver',
$use_nagios = hiera('nodo::subsystem::monitor::use_nagios', True),
- $use_fqdn = hiera('nodo::subsystem::monitor::use_nagios_fqdn', false)
+ $use_fqdn = hiera('nodo::subsystem::monitor::use_nagios_fqdn', false),
+ $ping_rate = hiera('nodo::subsystem::monitor::ping_rate', '!100.0,20%!500.0,60%')
) {
if $use_nagios != false {
if $type == 'vserver' {
include nagios::target::fqdn
- nagios::service::ping { "${::fqdn}": }
+ nagios::service::ping { "${::fqdn}":
+ ping_rate => $ping_rate,
+ }
}
if $type == 'host' {
@@ -18,7 +21,9 @@ class nodo::subsystem::monitor(
else {
include nagios::target
}
- nagios::service::ping { "${::fqdn}": }
+ nagios::service::ping { "${::fqdn}":
+ ping_rate => $ping_rate,
+ }
}
}