Public | Automated Build

Last pushed: 6 months ago
Short Description
A simple icinga2 satellite
Full Description

icinga2satellite

This image represents a preconfigured satellite for icinga2.
It connects to a single icinga2 master. Multi-endpoints are not supported yet!

Setup

  1. Create your container using compose (preferred)
  2. Setup your services in services.conf (good to know: NodeName="$NODE_NAME")
  3. Reload and restart your MASTER with icinga2 node update-config && service icinga2 restart
  4. If you got problems (like [FAIL] checking Icinga2 configuration. Check '/var/log/icinga2/startup.log' for details. ... failed!), try the following things (BE CAREFUL!):
    1. rm -r /etc/icinga2/repository.d/
    2. icinga2 node remove [nodename]

Environment variables Reference

Name Description
NODE_NAME Name of this node. It should be the FQDN of your container
NODE_ZONE (optional) Zone which this node belongs to (default: $NODE_NAME)
MASTER_HOST Adress of your Master-Host
MASTER_PORT (optional) Port of your Master-Host (default: 5665)
PKI_TICKET Request ticket generated on the MASTER_HOST-Server (icinga2 pki ticket --cn $NODE_NAME)

Docker-Compose

satellite:
  image: cybroken/icinga2satellite
  volumes:
    - ./run/services.conf:/etc/icinga2/conf.d/services.conf
  environment:
    NODE_NAME: "testcontainer"
    MASTER_HOST: "master.example.com"
    PKI_TICKET: "abcdefghijkd48a1f996d6e36c3183407da197c2"
Docker Pull Command
Owner
cybroken
Source Repository

Comments (0)