# 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 %>