Skip to content

Instantly share code, notes, and snippets.

@bsy
Created February 12, 2014 21:11
Show Gist options
  • Save bsy/8964589 to your computer and use it in GitHub Desktop.
Save bsy/8964589 to your computer and use it in GitHub Desktop.
Monit config to monitor newrelic_resque_agent without a PID file
check process newrelic_resque_agent
matching "newrelic_resque_agent"
start program = "/usr/bin/ruby /usr/bin/newrelic_resque_agent run"
stop program = "/usr/bin/killall newrelic_resque_agent"
if cpu usage > 95% for 10 cycles then restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment