Skip to content

AlexanderWiechert/icinga2-dockerized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published