Dockerfile
to create a Docker container image for Check_MK.
Check_MK is comprehensive IT monitoring solution in the tradition of Nagios.
This docker images is based on the Check_MK Raw Edition - a free and 100% open-source version.
The Check_MK Raw Edition is a full-blown IT monitoring solution.
If you find this image useful you can help. - Send a pull request with your awesome features and bug fixes
Before reporting your issue please try updating Docker to the latest version and check if it resolves the issue. Refer to the Docker installation guide for instructions.
SELinux users should try disabling SELinux using the command setenforce 0
to see if it resolves the issue.
You can build the image yourself.
docker build -t elcamlost/debian-check_mk github.com/elcamlost/check_mk
Start Check_MK using:
docker run -itd --name check_mk \
--publish 5000:5000 \
--restart always \
elcamlost/debian-check_mk
OPTIONAL: Specify outgoing mail server with -e "MAILHUB=IP:PORT"
. Also you can specify rewriteDomain ssmtp setting with -e "MAILDOMAIN=my.domain.tld"
OPTIONAL: Copy /opt/omd/sites directory from container with docker cp
to your machine and rerun imager with --volume /opt/omd/sites/:/opt/omd/sites/
option. It allows you to make backup copies of configuration and makes config persistent.
Check the status of check_mk using:
docker exec -it check_mk omd status
the result should look like:
Doing 'status' on site mva:
mkeventd: running
rrdcached: running
npcd: running
nagios: running
apache: running
-----------------------
Overall state: running
Fireup the Check_MK GUI:
Browse to http://localhost:5000/cmk
login with the default user omdadmin with password omd