Sign inSign up

psitrax/icinga2

By psitrax

Updated almost 6 years ago

Icinga2 Docker Container

Image
3

6.3K

psitrax/icinga2 repository overview

Icinga2 Docker Image

Image Size Docker Stars Docker Pulls Docker Automated buil GitHub tag

  • CentOS based
  • Automated Database initialization and update
  • Waits at least 60 seconds for database to come up
  • Auto populate config (if volume is empty)
  • Monitoring plugins included
  • Some additional helper scripts and plugins included
  • Functional Bash included
  • Requires MySQL/MariaDB
  • Docker-Healthcheck support

Exposed Volume: /icinga2: Contains all persistent data like config, ssh-key, cmd-pipe.
Exposed Port: 5665: Icinga2 API Port

Supported tags
  • Exact: i.e. 2.11.0-r1: Icinga2 Version 2.11.0, image build 1
  • 2.10: Icinga2 Version 2.10.x, latest image build
  • See Tags for all available versions.
Example

See docker-compose.yml: Icinga2 stack with UI and Graphing (TODO)

# Set container hostname to get correct API Cert DN
sudo docker run \
  --rm -t \
  --name icinga2 \
  --hostname icinga2 \
  --link mysql \
  -v $PWD/_data:/icinga2 \
  -p 5665:5665 \
  -e TIMEZONE=Europe/Berlin \
  -e ICINGA_API_PASS=damn-secret \
  psitrax/icinga2
sudo docker exec -ti icinga2 bash
Configuration with env vars
ENV-Vardefaultdescription
TIMEZONEUTCTimezone
MYSQL_AUTOCONFtrueEnable MySQL auto configuration
MYSQL_HOSTmysqlMySQL hostname
MYSQL_PORTmysqlMySQL Port
MYSQL_DBicinga2Database name
MYSQL_USERrootUser
MYSQL_PASSrootPassword
ICINGA_API_PASSPassword for icingaweb2 API user
ICINGA_FEATUREScommand ido-mysqlSpace separated list of Icinga Feature-Modules
ICINGA_LOGLEVELwarningLog level

Maintainer

Tag summary

Content type

Image

Digest

Size

203.2 MB

Last updated

almost 6 years ago

docker pull psitrax/icinga2