Created
March 27, 2010 01:26
-
-
Save pasviegas/345611 to your computer and use it in GitHub Desktop.
Simple monit script for mongodb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
I cannot get the most basic script working on this on
ubuntu 16.04
monit 5.16
I get the error:
Error reading pid from file '/var/run/mongod.pid'
but when I run
cat /var/run/mongod.pid
I do get the value51455
I've changed permissions making it both less and more restrictive to no avail. Thoughts?