Git Product home page Git Product logo

icinga2ido's Introduction

Docker Image for Icinga2 with Web-Management

Use mwaeckerlin/icinga2ido and mwaeckerlin/icingaweb2 together with mysql to get a complete icinga system monitoring with web ui and icinga director for configuration management.

Usage

    docker run -d --restart unless-stopped --name icinga-mysql-volume \
           mysql sleep infinity
    docker run -d --restart unless-stopped --name icinga-mysql \
               -e MYSQL_ROOT_PASSWORD=$(pwgen 20 1) \
               --volumes-from icinga-mysql-volume \
           mysql
    docker run -d --restart unless-stopped --name icinga-carbon-volume \
           mwaeckerlin/carbon-cache sleep infinity
    docker run -d --restart unless-stopped --name icinga-carbon \
                  --volumes-from icinga-carbon-volume \
           mwaeckerlin/carbon-cache
    docker run -d --restart unless-stopped --name icinga-graphite \
                  --volumes-from icinga-carbon-volume \
           mwaeckerlin/graphite-web
    docker run -d --restart unless-stopped --name icinga-volumes \
           mwaeckerlin/icinga2ido sleep infinity
    docker run -d --restart unless-stopped --name icinga \
               --hostname icinga \
               --link icinga-mysql:mysql \
               --link icinga-carbon:carbon \
               --volumes-from icinga-volumes \
           mwaeckerlin/icinga2ido

Please note: If you don't specify a host name, then you get a random hostname on each re-creation of the container. Then the api certificates are no more valid and the service refuses to start. Als the hostname should be the same as the name to keep it simple.

See the log to get the database configuration, users and passwords:

    docker logs -f icinga

When ready, continue with README.md in mwaeckerlin/icingaweb2 to setup the wen user interface.

Docker Swarm

This is an example docker compose file that you can use with docker stack deploy:

version: '3.3'
services:
  mysql:
    image: mysql
    volumes:
      - type: bind
        source: /var/volumes/icinga/mysql
        target: /var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=cu0thei6lahl6eel0Uxadu5eep1eXei5ceesh0gu

  carbon:
    image: mwaeckerlin/carbon-cache
    volumes:
      - type: bind
        source: /var/volumes/icinga/graphite
        target: /var/lib/graphite

  icinga:
    image: mwaeckerlin/icinga2ido
    volumes:
      - type: bind
        source: /var/volumes/icinga/cmd
        target: /var/run/icinga2/cmd
      - type: bind
        source: /var/volumes/icinga/lib
        target: /var/lib/icinga2
      - type: bind
        source: /var/volumes/icinga/etc/icinga
        target: /etc/icinga2
    environment:
      - MYSQL_ROOT_PASSWORD=cu0thei6lahl6eel0Uxadu5eep1eXei5ceesh0gu
      - ICINGA_PW=sejae9peiph0mailahkuweshioDoo6sheewoow4E
      - WEB_PW=Eifei4echanoongooriiw4ooNgiong5iepur0vei
      - DIRECTOR_PW=xom9Ahlah0uth4ohv1ahxuichimieth8xohk8poh

  icingaweb:
    image: mwaeckerlin/icingaweb2
    ports:
      - 8016:80
    volumes:
      - type: bind
        source: /var/volumes/icinga/cmd
        target: /var/run/icinga2/cmd
      - type: bind
        source: /var/volumes/icinga/etc/web
        target: /etc/icingaweb2
      - type: bind
        source: /var/volumes/icinga/log
        target: /var/log/icingaweb2

icinga2ido's People

Contributors

mwaeckerlin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.