Answer the question
In order to leave comments, you need to log in
MongoDB + monit?
Hello.
Ubuntu 14.04 LTS server has MongoDB installed. Monit + Munin is used for monitoring. You need to add MongoDB monitoring to monit.
Pid file /var/run/mongod.pid is present:
$ ls -la /var/run/mongod.pid
-rw-r--r-- 1 root root 6 Jan 7 17:58 /var/run/mongod.pid
check process mongod with pidfile /var/run/mongod.pid
start program = "/sbin/start mongod"
stop program = "/sbin/stop mongod"
if failed host 127.0.0.1 port 27017 then restart
if cpu > 60% for 2 cycles then alert
if cpu > 85% for 5 cycles then restart
if 5 restarts within 5 cycles then timeout
start program = "/sbin/start mongod"
stop program = "/sbin/stop mongod"
start program = "/etc/init.d/nginx start"
stop program = "/etc/init.d/nginx stop"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question