%w(rabbitmq-overview-metrics.rb rabbitmq-queue-metrics.rb).each do |check|
  cron "poll_#{check}" do
    action :delete
    command "/opt/logstash/agent/bin/sensu_metrics.sh rabbitmq/#{check}"
    user 'root'
    minute '*'
  end
end
