Easy-to-deploy Icinga2 satellite in a Docker
1.8K
An easy-to-use Dockerized Icinga2 satellite setup. It could be used as an Icinga2 agent aswell, but I don't think that would make much sense. The goal is instead to create an easy-to-deploy satellite image.
NOTE: Currently there are some problems with the Alpine image. Use the main images instead, tagged 0.n.
There are two available images for you to choose from. The main images (0.n) are based on Debian 10-slim from tag 0.5 and up. Previous to 0.5 they were based on Ubuntu 18.04. The main images uses Icinga2 from Icingas official repository.
The other images (0.n-alpine) are based on Alpine with Icinga2 from Alpines repository. From 0.1.1-alpine and up, the Alpine images are built on the latest Alpine image. Previous to 0.1.1 they were based on Alpine 3.11.
Everything is controlled using the following environment variables.
You need to mount /var/lib/icinga2 and /var/cache/icinga2 somewhere on your
filesystem to preserve the state of the satellite between restarts. See the
examples below.
#> docker run -d --name my-icinga-sat \
-p 5665:5665 \
-e CN=icinga-sat02.local \
-e PARENTHOST=icinga-master.local \
-e PARENTCN=icinga-master.local \
-e PARENTZONE=master \
-e TICKET=124de0573705d1133db62a974aaf \
-e DISABLE_CONFD=y -e ACCEPT_CONFIG=y -e ACCEPT_COMMANDS=y \
-v /var/lib/icinga2:/var/lib/icinga2 \
-v /var/cache/icinga2:/var/cache/icinga2 \
jackbenny/icinga-satellite
version: "3.8"
services:
my-icinga-sat:
image: jackbenny/icinga-satellite
ports:
- 5665:5665
restart:always
environment:
- CN=icinga-sat02.local
- ZONE=icinga-sat02.local
- PARENTHOST=icinga-master.local
- PARENTCN=icinga-master.local
- PARENTZONE=master
- TICKET=124de0573705d1133db62a974aaf
- ACCEPT_CONFIG=y
- ACCEPT_COMMANDS=y
- DISABLE_CONFD=y
- LOCAL_TIMEZONE=Europe/Stockholm
volumes:
- /var/lib/icinga2:/var/lib/icinga2
- /var/cache/icinga2:/var/cache/icinga2
version: "3.8"
services:
my-icinga-sat:
image: jackbenny/icinga-satellite
environment:
- CN=icinga-sat02.local
- PARENTHOST=icinga-master.local
- PARENTZONE=master
- TICKET_PATH=/var/run/secrets/ticket
- ACCEPT_CONFIG=y
- ACCEPT_COMMANDS=y
- DISABLE_CONFD=y
- LOCAL_TIMEZONE=Europe/Stockholm
volumes:
- /var/lib/icinga2:/var/lib/icinga2
- /var/cache/icinga2:/var/cache/icinga2
secrets:
- ticket
secrets:
ticket:
external: true
Content type
Image
Digest
Size
73.2 MB
Last updated
over 5 years ago
docker pull jackbenny/icinga-satellite