Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wglanzer/icinga2satellite

Preconfigured icinga2 satellite docker image
https://github.com/wglanzer/icinga2satellite

docker-compose docker-image icinga2

Last synced: about 2 months ago
JSON representation

Preconfigured icinga2 satellite docker image

Awesome Lists containing this project

README

        

# icinga2satellite
[![Docker Automated buil](https://img.shields.io/docker/automated/jrottenberg/ffmpeg.svg)](https://hub.docker.com/r/cybroken/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
```yml
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"
```