Sha256: bda245609384501eba655b1e38df6ec7a916613a34e9d4de96ee6a83b2a5059d

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

# Check files for <%= fetch(:application) %> [<%= fetch(:stage) %>]
<% monit_files_list.each do |that| %>
check file "<%= that[:name] %>" with path <%= that[:path] %>
	if size > <%= that[:max_size].to_i %> GB then <%= monit_alert %>
	<% if that[:clear] %>
	if size > <%= that[:max_size].to_i %> GB
		for 3 cycles
		then exec '/bin/echo "cleared by MONIT - $( date +"%F - %R" ):" > <%= that[:path] %>'
		repeat every 20 cycles
	<% end %>

<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
magic_recipes_two-0.0.95 lib/generators/capistrano/magic_recipes/templates/monit/file_checks.erb