Index: modules/nagios/templates/nrpe.cfg.erb |
diff --git a/modules/nagios/templates/nrpe.cfg.erb b/modules/nagios/templates/nrpe.cfg.erb |
index 3e1206e78a8ce8bac05101e30dba7686956fc133..cd64891e9488bda13efa6798e6c7b5f9cbeb06b1 100644 |
--- a/modules/nagios/templates/nrpe.cfg.erb |
+++ b/modules/nagios/templates/nrpe.cfg.erb |
@@ -13,7 +13,9 @@ command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 |
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 3 -c 1 |
command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200 |
command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z |
-command[check_bandwidth]=/usr/lib/nagios/plugins/check_bandwidth 130000000 150000000 |
+command[check_bandwidth]=/usr/lib/nagios/plugins/check_bandwidth <%= |
+ scope.function_hiera('nagios::client::bandwidth_warning_threshold', 130000).to_i * 1000 %> <%= |
+ scope.function_hiera('nagios::client::bandwidth_critical_threshold', 150000).to_i * 1000 %> |
command[check_connections]=/usr/lib/nagios/plugins/check_connections |
command[check_memory]=/usr/lib/nagios/plugins/check_memory |
include=/etc/nagios/nrpe_local.cfg |