aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-05-04 17:57:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-05-04 17:57:14 -0300
commita5a64d005b37a529bb5381097097fab2ceea6da5 (patch)
tree27c084c602051f297dcffba6b0b31489901b56ea
parentc5df63b814ddab1c58ace66fee9899c83058a0ad (diff)
downloadpuppet-nodo-a5a64d005b37a529bb5381097097fab2ceea6da5.tar.gz
puppet-nodo-a5a64d005b37a529bb5381097097fab2ceea6da5.tar.bz2
Adding ping_rate parameter to nodo::subsystem::monitor
-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,
+ }
}
}