From a5a64d005b37a529bb5381097097fab2ceea6da5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 4 May 2013 17:57:14 -0300 Subject: Adding ping_rate parameter to nodo::subsystem::monitor --- manifests/subsystem/monitor.pp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'manifests/subsystem/monitor.pp') 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, + } } } -- cgit v1.2.3