Skip to content

Commit

Permalink
Merge pull request #31 from jkraemer/add_logfile_attribute
Browse files Browse the repository at this point in the history
make log file configurable
  • Loading branch information
apsoto committed Aug 3, 2013
2 parents a571b7a + 530a243 commit 205a32b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions 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

Expand Down
2 changes: 1 addition & 1 deletion templates/default/monitrc.erb
Expand Up @@ -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] %>
Expand Down

0 comments on commit 205a32b

Please sign in to comment.