Install checkmk Docker
Version vom 19. November 2021, 13:12 Uhr von Thomas.will (Diskussion | Beiträge) (→Password checken)
Verzeichnisse anlegen
- mkdir -p docker/checkmk
- cd docker/checkmk
- mkdir -p omd-sites
Dockercompose File
- nano docker-compose.yml
version: '3.1' services: controll: image: checkmk/check-mk-raw:2.0.0-latest tmpfs: - /opt/omd/sites/cmk/tmp:uid=1000,gid=1000 ulimits: nofile: 1024 container_name: checkmk restart: always volumes: - '/etc/localtime:/etc/localtime:ro' - './odm-sites:/omd/sites' ports: - '8095:5000' - '6557:6557'
Starten manuell
- docker-compose up -d
Stoppen manuell
- cd /root/docker/checkmk/
- docker-compse down
Password checken
- docker container logs checkmk
Created new site cmk with version 2.0.0.cre.
The site can be started with omd start cmk. The default web UI is available at http://73a86e310b60/cmk/
The admin user for the web applications is cmkadmin with password: 2JLysBmv For command line administration of the site, log in with 'omd su cmk'. After logging in, you can change the password for cmkadmin with 'htpasswd etc/htpasswd cmkadmin'.
cmkadmin passwort setzen
- docker exec -it checkmk /bin/bash
- su - cmk
- OMD[cmk]:>#~$ htpasswd -m ~/etc/htpasswd cmkadmin
- exit
- exit
Todo
- certbot
- letsencrypt
- reverseproxy