Skip to content

Instantly share code, notes, and snippets.

@mkempe
Created November 26, 2012 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkempe/4148951 to your computer and use it in GitHub Desktop.
Save mkempe/4148951 to your computer and use it in GitHub Desktop.
Monit Kung Fu
#!/usr/bin/env monit
check host foobar.com with address foobar.com
group www
group foobar.com
if failed icmp type echo with timeout 5 seconds for 1 cycles then alert
if failed port 80 protocol http timeout 5 seconds for 1 cycles then alert
if failed url http://foobar.com timeout 5 seconds for 1 cycles then alert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment