Skip to content

Commit dadcde5

Browse files
committed
set default alert blacklist
1 parent 68a9e24 commit dadcde5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

attributes/default.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
default[:monit][:notify_email] = "notify@example.com"
2-
default[:monit][:alert_blacklist] = []
2+
default[:monit][:alert_blacklist] = %w( action, instance, pid, ppid )
33

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

templates/default/monitrc.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ set mail-format {
3131
message: <%= @node[:monit][:mail_format][:message] %>
3232
}
3333

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

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

0 commit comments

Comments
 (0)