Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #31 from jkraemer/add_logfile_attribute

make log file configurable
  • Loading branch information...
commit 205a32bd222be7cfd1bac265d9396224d6d73996 2 parents a571b7a + 530a243
@apsoto authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  attributes/default.rb
  2. +1 −1  templates/default/monitrc.erb
View
2  attributes/default.rb
@@ -1,5 +1,7 @@
default[:monit][:notify_email] = "notify@example.com"
+default[:monit][:logfile] = 'syslog facility log_daemon'
+
default[:monit][:poll_period] = 60
default[:monit][:poll_start_delay] = 120
View
2  templates/default/monitrc.erb
@@ -3,7 +3,7 @@ set daemon <%= @node[:monit][:poll_period] %>
with start delay <%= @node[:monit][:poll_start_delay] %>
<% end %>
-set logfile syslog facility log_daemon
+set logfile <%= @node[:monit][:logfile] %>
set mailserver <%= @node[:monit][:mailserver][:host] %><%= " port #{@node[:monit][:mailserver][:port]}" if @node[:monit][:mailserver][:port] %>
<% if @node[:monit][:mailserver][:username] %>
Please sign in to comment.
Something went wrong with that request. Please try again.