Configuración Inicial
groales edited this page 2025-12-05 09:43:15 +01:00

Configuración Inicial

Pasos para configurar CheckMK tras el primer despliegue.

Primer Acceso

  1. Accede a CheckMK: https://checkmk.tudominio.com/monitoring/
  2. Login con credenciales iniciales:
    • Usuario: cmkadmin
    • Contraseña: La que configuraste en CMK_PASSWORD

Cambiar Contraseña (Recomendado)

  1. Click en cmkadmin (esquina superior derecha)
  2. Change password
  3. Ingresa contraseña actual y nueva (mínimo 8 caracteres)
  4. Save

Configuración del Site

Global Settings

Setup → General → Global settings:

  • Site name: Monitorización Producción
  • Admin email: admin@example.com
  • Timezone: Europe/Madrid
  • Date/Time format: 2025-12-05 14:30:00

Configurar URL Base

Setup → General → Site Management → Global Settings:

  • Site URL prefix: https://checkmk.tudominio.com/monitoring

Esto corrige enlaces en emails y notificaciones.


Usuarios y Roles

Crear Usuario

Setup → Users → Add user:

  1. Username: jperez
  2. Full name: Juan Pérez
  3. Email: jperez@example.com
  4. Password: Contraseña temporal
  5. Roles: User (o Administrator si necesita acceso completo)
  6. Save

Roles Disponibles

  • Administrator: Acceso completo al sistema
  • User: Puede ver y gestionar monitorización
  • Guest: Solo lectura

Crear Rol Personalizado

Setup → Users → Roles → Add role:

  1. ID: operator
  2. Alias: Operador
  3. Permissions:
    • View all hosts and services
    • Acknowledge problems
    • Configure CheckMK
  4. Save

Configurar Notificaciones

Email (SMTP)

Setup → Notifications → Personal settings:

  1. Click en cmkadminNotification rules
  2. Add rule:
    • Description: Alertas críticas por email
    • Notification Method: Email
    • Contact selection: All contacts of the notified object
    • Match conditions:
      • State: CRITICAL y DOWN
    • SMTP settings:
      • SMTP server: smtp.gmail.com:587
      • From: checkmk@example.com
      • TLS: Activado
  3. Save

Slack

  1. Crea Webhook en Slack: https://hooks.slack.com/services/XXX/YYY/ZZZ
  2. Setup → Notifications → Add rule:
    • Notification Method: Slack or Mattermost
    • Webhook URL: Pega la URL
    • Channel: #monitoring
  3. Save

Microsoft Teams

Similar a Slack, usando webhook de Teams.


Contactos

Añadir Contacto

Setup → Users → Contacts → Add contact:

  1. ID: admin-team
  2. Alias: Equipo Admin
  3. Email: admin-team@example.com
  4. Pager: Número de teléfono (opcional)
  5. Save

Asignar Contactos a Hosts

Al crear/editar hosts:

  • Contacts: Seleccionar contactos
  • Los contactos recibirán notificaciones de ese host

Configuración de Site

Performance

Setup → General → Global settings → User Interface:

  • Number of columns for service views: 3
  • Number of elements to show: 100

Setup → General → Global settings → Performance:

  • Check result expiry: 1800 (30 minutos)
  • Enable cached web pages: Activado

Logging

Setup → General → Global settings → Logging:

  • Logging level: INFO (production) o DEBUG (troubleshooting)

Licencia (CheckMK RAW)

CheckMK RAW es gratuito y no requiere licencia.

Si necesitas funcionalidades enterprise (reportes avanzados, distribuido, etc.), considera CheckMK Enterprise Edition.


Próximos Pasos

  1. Monitorización - Añade tus primeros hosts
  2. Backup - Automatiza backups
  3. Explora - Familiarízate con la interfaz