Install checkmk Docker

Aus xinux.net
Zur Navigation springen Zur Suche springen

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

  • docker-compse down

Passwort 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
  • bzw.
  • su - my-site
  • (OMD[cmk]:>#~$ htpasswd -m ~/etc/htpasswd cmkadmin)
  • OMD[cmk]:>#~$ cmk-passwd cmkadmin
  • exit
  • exit