Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
set default alert blacklist
  • Loading branch information
yourabi committed Sep 8, 2014
1 parent 68a9e24 commit fa5f017
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion attributes/default.rb
@@ -1,5 +1,5 @@
default[:monit][:notify_email] = "notify@example.com"
default[:monit][:alert_blacklist] = []
default[:monit][:alert_blacklist] = %w( action, instance, pid, ppid )

default[:monit][:logfile] = 'syslog facility log_daemon'

Expand Down
2 changes: 1 addition & 1 deletion templates/default/monitrc.erb
Expand Up @@ -31,7 +31,7 @@ set mail-format {
message: <%= @node[:monit][:mail_format][:message] %>
}

set alert <%= @node[:monit][:notify_email] %><%= " NOT ON { #{@node[:monit][:alert_blacklist]} }" unless @node[:monit][:alert_blacklist].empty? %>
set alert <%= @node[:monit][:notify_email] %><%= " NOT ON { #{@node[:monit][:alert_blacklist].join(", ")} }" unless @node[:monit][:alert_blacklist].empty? %>

set httpd port <%= @node[:monit][:port] %>
<%= "use address #{@node[:monit][:address]}" if @node[:monit][:address] %>
Expand Down

0 comments on commit fa5f017

Please sign in to comment.