<% @applications.each do |application, values| %> <% values['nagios']['http']['checks'].each do |check| %> define service{ use generic-service servicegroups applications host_name <%= node['gazelle_nagios']['hostname'] %> service_description <%= check.gsub('?',' ').gsub('/',' ') %> check_command check_http_ihe!<%= node['gazelle_nagios']['hostname'] %>!80!/<%= check%> } <% end %> <% end %>