Skip to content

Instantly share code, notes, and snippets.

@durran
Created December 1, 2011 14:14
Show Gist options
  • Save durran/1417023 to your computer and use it in GitHub Desktop.
Save durran/1417023 to your computer and use it in GitHub Desktop.
MongoDB Monit Config
check process mongodb
with pidfile "/var/lib/mongodb/mongod.lock"
start program = "/sbin/start mongodb"
stop program = "/sbin/stop mongodb"
if failed port 28017 protocol http
and request "/" with timeout 10 seconds then restart
if 5 restarts within 5 cycles then timeout
@madhavkaneriya
Copy link

What to do if my MongoDb is authenticated ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment