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

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

Issue 29458590: Noissue - Use parameter for network interface in the check_bandwidth nagios plugin (Closed)
Patch Set: Created June 7, 2017, 12:38 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
Index: modules/nagios/templates/nrpe.cfg.erb
===================================================================
--- a/modules/nagios/templates/nrpe.cfg.erb
+++ b/modules/nagios/templates/nrpe.cfg.erb
@@ -19,7 +19,8 @@
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_critical_threshold', 150000]).to_i * 1000
+ scope.function_hiera(['nagios::client::bandwidth_network_interface', 'eth0']).to_s %>
command[check_connections]=/usr/lib/nagios/plugins/check_connections
command[check_memory]=/usr/lib/nagios/plugins/check_memory
include=/etc/nagios/nrpe_local.cfg
« modules/nagios/files/check_bandwidth ('K') | « modules/nagios/files/check_bandwidth ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld