Install checkmk Docker: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (28 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
=Verzeichnisse anlegen= | =Verzeichnisse anlegen= | ||
| − | *mkdir -p / | + | *mkdir -p docker/checkmk |
| − | *mkdir -p | + | *cd docker/checkmk |
| + | *mkdir -p omd-sites | ||
| − | = | + | =Docker Compose File= |
| − | * | + | *nano docker-compose.yml |
<pre> | <pre> | ||
| − | |||
services: | services: | ||
| − | + | checkmk: | |
| − | image: checkmk/check-mk-raw: | + | image: checkmk/check-mk-raw:2.3.0-latest |
| + | container_name: checkmk | ||
| + | restart: always | ||
tmpfs: | tmpfs: | ||
| − | + | - /opt/omd/sites/cmk/tmp:uid=1000,gid=1000 | |
ulimits: | ulimits: | ||
| − | nofile: | + | nofile: 49152 |
| − | |||
| − | |||
volumes: | volumes: | ||
| − | - | + | - /etc/localtime:/etc/localtime:ro |
| − | - | + | - ./omd-sites:/omd/sites |
ports: | ports: | ||
| − | - | + | - "8095:5000" |
| − | - | + | - "6557:6557" |
</pre> | </pre> | ||
| + | |||
=Starten manuell= | =Starten manuell= | ||
| − | * | + | *docker compose up -d |
| − | + | ||
=Stoppen manuell= | =Stoppen manuell= | ||
| − | * | + | *docker compose down |
| − | + | ||
| − | = | + | =Passwort checken= |
| − | * | + | *docker container logs checkmk |
| − | + | Created new site cmk with version 2.3.0.cre. | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | The site can be started with omd start cmk. | |
| − | + | The default web UI is available at http://<container_id>/cmk/ | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | The admin user for the web applications is cmkadmin with password: <zufälliges_passwort> | |
| − | + | 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]:~$ cmk-passwd cmkadmin | |
| − | + | *exit | |
| − | * | ||
| − | * | ||
| − | * | ||
Aktuelle Version vom 16. September 2025, 17:07 Uhr
Verzeichnisse anlegen
- mkdir -p docker/checkmk
- cd docker/checkmk
- mkdir -p omd-sites
Docker Compose File
- nano docker-compose.yml
services:
checkmk:
image: checkmk/check-mk-raw:2.3.0-latest
container_name: checkmk
restart: always
tmpfs:
- /opt/omd/sites/cmk/tmp:uid=1000,gid=1000
ulimits:
nofile: 49152
volumes:
- /etc/localtime:/etc/localtime:ro
- ./omd-sites:/omd/sites
ports:
- "8095:5000"
- "6557:6557"
Starten manuell
- docker compose up -d
Stoppen manuell
- docker compose down
Passwort checken
- docker container logs checkmk
Created new site cmk with version 2.3.0.cre.
The site can be started with omd start cmk. The default web UI is available at http://<container_id>/cmk/
The admin user for the web applications is cmkadmin with password: <zufälliges_passwort> 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]:~$ cmk-passwd cmkadmin
- exit