This image represents a preconfigured satellite for icinga2.
It connects to a single icinga2 master. Multi-endpoints are not supported yet!
- Create your container using compose (preferred)
- Setup your services in services.conf (good to know: NodeName="$NODE_NAME")
- Reload and restart your MASTER with
icinga2 node update-config && service icinga2 restart
- If you got problems (like
[FAIL] checking Icinga2 configuration. Check '/var/log/icinga2/startup.log' for details. ... failed!
), try the following things (BE CAREFUL!):rm -r /etc/icinga2/repository.d/
icinga2 node remove [nodename]
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 ) |
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"