Skip to content

Daemon that helps you monitor docker containers with tools like monit by maintaining PID files for the containers. I use this for replylater.com and it's not very polished yet but maybe some people will find it useful.

Notifications You must be signed in to change notification settings

dullyouth/docker-monit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-monit: very simple daemon that helps you monitor docker containers by maintaining PID files for them.

Create file /etc/defaults/docker-monit with contents:

CONTAINERS="container1 container2 container3"

Then run:

cp docker-monit /usr/local/bin/

Upstart users

cp docker-monit.conf /etc/init

start docker-monit

stop docker-monit

sudo cat /var/log/upstart/docker-monit.log

Systemd users

cp docker-monit.service /etc/systemd/service

/bin/systemctl enable docker-monit.service

service start docker-monit

service stop docker-monit

sudo journalctl -f -u docker-monit.service

Monit users

Create file /etc/monit/conf.d/docker-monit with contents:

check process docker-monit with pidfile /var/run/docker-monit.pid
  start program = "/sbin/start docker-monit"
  stop program = "/sbin/stop docker-monit"
  if 5 restarts with 5 cycles then timeout

check process rl_db with path /var/run/docker-monit/rl_db.pid
  if 5 restarts with 5 cycles then timeout

About

Daemon that helps you monitor docker containers with tools like monit by maintaining PID files for the containers. I use this for replylater.com and it's not very polished yet but maybe some people will find it useful.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%