Skip to content

Instantly share code, notes, and snippets.

@zires
Forked from pasviegas/mongodb
Last active August 29, 2015 14:10
Show Gist options
  • Save zires/56e349b7d4c4f95e2501 to your computer and use it in GitHub Desktop.
Save zires/56e349b7d4c4f95e2501 to your computer and use it in GitHub Desktop.
check host mongodb with address localhost
start program = "/usr/bin/sudo /opt/database/mongo/bin/mongod"
stop program = "/usr/bin/sudo /usr/bin/pkill -f mongod"
if failed port 28017 protocol HTTP
request /
with timeout 10 seconds
then start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment