Skip to content

Installation de Checkmk


objectif

Installer Checkmk sur une machine Debian pour superviser son réseau local via Docker ou installation classique.


prerequis

  • Machine ou VM sous Debian 11 ou 12

  • Docker et Docker Compose installés (si utilisation en stack)

  • Accès administrateur (root)

  • Ports ouverts :

    • 8082 (accès Checkmk via navigateur si installation Docker)

installation

Option 1 : Installation en ligne de commande classique

  1. Mettre à jour le système :
apt update && apt upgrade -y
  1. Télécharger la dernière version de Checkmk RAW (édition gratuite) :
wget https://download.checkmk.com/checkmk/2.2.0p9/check-mk-raw-2.2.0p9_0.focal_amd64.deb
  1. Installer Checkmk :
dpkg -i check-mk-raw-2.2.0p9_0.focal_amd64.deb
apt install -f
  1. Créer un site Checkmk :
omd create monitoring
  1. Démarrer le site :
omd start monitoring
  1. Accéder à l'interface Web :
http://IP_DE_TA_VM/monitoring

Identifiant : cmkadmin (mot de passe généré affiché après création du site)


Option 2 : Installation via Docker (stack Portainer)

  1. Aller dans Portainer → Stacks → Ajouter une stack

  2. Utiliser cette stack :

version: "3.8"

services:
  checkmk:
    image: checkmk/check-mk-raw:2.2.0-latest
    container_name: checkmk
    restart: unless-stopped
    ports:
      - "8082:5000"   # Port HTTP d'accès à l'interface
    volumes:
      - checkmk_data:/omd/sites
    environment:
      - CMK_SITE_ID=monitoring
      - CMK_PASSWORD=🚨Mot de passe🚨
      - CMK_USERNAME=cmkadmin
      - CMK_LIVESTATUS_TCP=on
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:5000"]
      interval: 30s
      timeout: 10s
      retries: 5

volumes:
  checkmk_data:
  1. Déployer la stack.

  2. Accéder à l'interface Web :

http://IP_DE_TA_VM:8082

Utilisateur : cmkadmin

Vérifier que le port 8080 est ouvert sur ta VM, sinon tu ne pourras pas accéder à l'interface.

Pour vérifier :

ss -tulpn | grep 8082

conclusion

Checkmk est maintenant prêt à superviser ton réseau local.

💡 Tu peux maintenant ajouter tes machines (agents, SNMP, ping, etc.) directement depuis l'interface Web ! Le tuto configuration check MK est disponible sur le site.