https://github.com/shreyaskarnik/monit-docker
Dockerized Monit
https://github.com/shreyaskarnik/monit-docker
Last synced: 5 months ago
JSON representation
Dockerized Monit
- Host: GitHub
- URL: https://github.com/shreyaskarnik/monit-docker
- Owner: shreyaskarnik
- Created: 2015-02-04T17:24:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-04T17:42:10.000Z (over 11 years ago)
- Last Synced: 2026-01-14T23:19:00.459Z (5 months ago)
- Size: 117 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Dockerized Monit
Clone this repo.
Edit [monitrc](http://mmonit.com/monit/documentation/monit.html#THE-MONIT-CONTROL-FILE) to set your monit config.
Add Configuration for Services/Process that you want to monitor in conf.d
For example, nginx monitoring can be added in conf.d as
```
check process nginx with pidfile /var/run/nginx.pid
start program = "/etc/init.d/nginx start"
stop program = "/etc/init.d/nginx stop"
```
Build Docker Image ```docker build -t .```
Monit Image is ready and can be invoked as ```docker run -d -p 2812:2812 ```
Monit is now running and is available at ```:2812```