Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/nagios/templates/nrpe.cfg.erb

Issue 29367491: Issue 3065 - Ensure Puppet 3 compatibility in nrpe.cfg template (Closed)
Patch Set: Created Dec. 14, 2016, 3:03 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/nagios/templates/nrpe.cfg.erb
diff --git a/modules/nagios/templates/nrpe.cfg.erb b/modules/nagios/templates/nrpe.cfg.erb
index cd64891e9488bda13efa6798e6c7b5f9cbeb06b1..05655420b5d6ed5549ac3e4956027d3efedb983e 100644
--- a/modules/nagios/templates/nrpe.cfg.erb
+++ b/modules/nagios/templates/nrpe.cfg.erb
@@ -14,8 +14,8 @@ 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 <%=
- scope.function_hiera('nagios::client::bandwidth_warning_threshold', 130000).to_i * 1000 %> <%=
- scope.function_hiera('nagios::client::bandwidth_critical_threshold', 150000).to_i * 1000 %>
+ 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld