Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 2.33 KB

README.md

File metadata and controls

72 lines (49 loc) · 2.33 KB

icinga2-dockerized

##Container setup

Database

Der DB Container können wir als fertiges Image direkt per run starten. Das Komando kann so genutzt werden. Benutzer und Passwort sollten dann allerdings angepasst werden.

$ docker run --detach --name mariadb \
--env MARIADB_USER=icinga \
--env MARIADB_PASSWORD=password \
--env MARIADB_ROOT_PASSWORD=root  \
- v $(pwd)/mysql:/var/lib/mysql
-p 3306:3306 \
mariadb:latest

Monitoring

Den Container für das Monitoring Tool bauen wir selber. Und können ihn einfach starten.

$ docker run --link mariadb -it --rm --entrypoint /bin/bash  icinga2
root@d951282063d1:/# mysql -hmariadb -uicinga2 -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.5.5-10.7.3-MariaDB-1:10.7.3+maria~focal mariadb.org binary distribution

Copyright (c) 2000, 2022, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 

Config Files location

Login to Icinga Web 2

Successfully connected to existing database "icingaweb2"... Database schema already exists... Login "icingaweb2" already exists... Required privileges were already granted to login "icingaweb2". The database has been fully set up!

General configuration has been successfully written to: /etc/icingaweb2/config.ini

Authentication configuration has been successfully written to: /etc/icingaweb2/authentication.ini Account "admin" has been successfully created. Account "admin" has been successfully defined as initial administrator.

User Group Backend configuration has been successfully written to: /etc/icingaweb2/groups.ini Account "admin" has been successfully added as member to user group "Administrators".

Resource configuration has been successfully written to: /etc/icingaweb2/resources.ini

Monitoring backend configuration has been successfully written to: /etc/icingaweb2/modules/monitoring/backends.ini Resource configuration has been successfully updated: /etc/icingaweb2/resources.ini

Alexander Wiechert // Elastic2ls

Website

Contact

License