Skip to content

Instantly share code, notes, and snippets.

@icambridge
Created February 11, 2012 14:24
Show Gist options
  • Save icambridge/1799745 to your computer and use it in GitHub Desktop.
Save icambridge/1799745 to your computer and use it in GitHub Desktop.
Monit config file
check system localhost
if memory usage > 65% then exec "/usr/bin/php /root/cloud/create.php"
if memory usage < 20% then exec "/usr/bin/php /root/cloud/terminate.php"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment