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

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

Issue 29375882: Noissue - Integrate load monitoring with hiera (Closed)
Patch Set: Created Feb. 17, 2017, 7:59 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
===================================================================
--- a/modules/nagios/templates/nrpe.cfg.erb
+++ b/modules/nagios/templates/nrpe.cfg.erb
@@ -9,7 +9,9 @@
debug=0
command_timeout=60
connection_timeout=300
-command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
+command[check_load]=/usr/lib/nagios/plugins/check_load -w <%=
+ scope.function_hiera(['nagios::client::load_warning_threshold', [15,10,5]]).join(",") %> -c <%=
+ scope.function_hiera(['nagios::client::load_critical_threshold', [30,25,20]]).join(",") %>
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 3 -c 1
command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w <%=
scope.function_hiera(['nagios::client::total_procs_warning_threshold', 150]).to_i %> -c <%=
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld