Skip to content

Instantly share code, notes, and snippets.

@skihero
Created October 27, 2014 16:16
Show Gist options
  • Save skihero/003498f42131ddf7a147 to your computer and use it in GitHub Desktop.
Save skihero/003498f42131ddf7a147 to your computer and use it in GitHub Desktop.
templates/default/nrpe.cfg.erb
cat templates/default/nrpe.cfg.erb
# Autogenerated by Chef.
<%= "log_facility=#{node['nrpe']['log_facility']}" unless node['nrpe']['log_facility'].nil? %>
<%= "allow_bash_command_substitution=#{node['nrpe']['allow_bash_command_substitution']}" unless node['nrpe']['allow_bash_command_substitution'].nil? %>
<%= "command_prefix=#{node['nrpe']['command_prefix']}" unless node['nrpe']['command_prefix'].nil? %>
pid_file=<%= node['nrpe']['pid_file'] %>
server_port=<%= node['nrpe']['server_port'] %>
<%= "server_address=#{node['nrpe']['server_address']}" unless node['nrpe']['server_address'].nil? %>
nrpe_user=<%= node['nrpe']['user'] %>
nrpe_group=<%= node['nrpe']['group'] %>
dont_blame_nrpe=<%= node['nrpe']['dont_blame_nrpe'] %>
debug=<%= node['nrpe']['debug'] %>
command_timeout=<%= node['nrpe']['command_timeout'] %>
<%= "connection_timeout=#{node['nrpe']['connection_timeout']}" unless node['nrpe']['connection_timeout'].nil? %>
allowed_hosts=<%= @mon_host.join(',') %>
include_dir=<%= @nrpe_directory %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment