Icinga-web ubuntu 16.04: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
|||
(28 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
=install icinga2= | =install icinga2= | ||
==icinga2 repo hinzufügen== | ==icinga2 repo hinzufügen== | ||
− | *add-apt-repository ppa:formorer/icinga | + | *add-apt-repository -y ppa:formorer/icinga |
+ | |||
==listen neu laden== | ==listen neu laden== | ||
*apt-get update | *apt-get update | ||
==icinga2 installation== | ==icinga2 installation== | ||
− | *apt-get install icinga2 | + | *apt-get install icinga2 icingaweb2 |
+ | |||
+ | ==MySQL Server und IDO Schnittstelle installieren== | ||
+ | *apt-get install mysql-server mysql-client | ||
+ | *apt-get install icinga2-ido-mysql | ||
+ | ===root Password für Mysql=== | ||
+ | [[Datei:icinga2-mysql1.png]] | ||
+ | ===enable IDO Features=== | ||
+ | [[Datei:icinga2-mysql2.png]] | ||
+ | ===konfigureren der IDO Datenbank=== | ||
+ | [[Datei:icinga2-mysql3.png]] | ||
+ | ===passwort für icinga-ido-mysql=== | ||
+ | [[Datei:icinga2-mysql4.png]] | ||
+ | |||
+ | ==Features eaktivieren== | ||
+ | *icinga2 feature enable ido-mysql | ||
+ | *icinga2 feature enable command | ||
+ | ==Features listen== | ||
+ | *icinga2 feature list | ||
+ | ==restart icinga2== | ||
+ | *systemctl restart icinga2.service | ||
+ | |||
+ | ==User anlgen== | ||
+ | *addgroup --system icingacmd | ||
+ | Adding group `icingacmd' (GID 119) ... | ||
+ | *usermod -a -G icingacmd www-data | ||
+ | *id www-data | ||
+ | uid=33(www-data) gid=33(www-data) groups=33(www-data),119(icingacmd) | ||
+ | |||
==installation diverser pakete== | ==installation diverser pakete== | ||
− | *apt-get install libapache2-mod-php7.0 libapache2-mod-php | + | *apt-get install libapache2-mod-php7.0 libapache2-mod-php php-intl php-xml php-gd php-imagick php-pgsql php7.0-mysql |
− | |||
+ | =Icinga Web 2 Installation= | ||
+ | *apt-get install icingaweb2 | ||
+ | ==show tokken== | ||
+ | *icingacli setup token create | ||
+ | *icingacli setup token show | ||
− | /etc/ | + | ==timezone setzen== |
+ | date.timezone = europe/berlin | ||
+ | eintragen in | ||
+ | vi /etc/php/7.0/apache2/php.ini | ||
+ | ==Zugriff auf den Token freischalten== | ||
+ | *addgroup --system icingaweb2 | ||
+ | *usermod -a -G icingaweb2 www-data | ||
+ | *systemctl restart apache2.service | ||
+ | =Setup icinga Web2= | ||
+ | *http://(hostname)/icingaweb2/setup | ||
− | + | [[Datei:icinga-web2-setup1.png]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ||
− | + | ||
− | + | [[Datei:icinga-web2-setup2.png]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | [[Datei:icinga-web2-setup33.png]] | |
− | + | ||
− | + | ||
− | + | ||
− | == | + | |
− | + | [[Datei:icinga-web2-setup4.png]] | |
+ | |||
+ | |||
+ | [[Datei:icinga-web2-setup5.png]] | ||
+ | |||
+ | |||
+ | [[Datei:icinga-web2-setup6.png]] | ||
+ | |||
+ | |||
+ | |||
+ | [[Datei:icinga-web2-setup7.png]] | ||
+ | |||
+ | =troubleshoting= | ||
+ | bei problemen mit den zugriffsrechte | ||
+ | chmod 777 /etc/icingaweb2/modules/ | ||
+ | chown -R www-data:icingaweb2 modules/ | ||
=Links= | =Links= | ||
*https://www.thomas-krenn.com/de/wiki/Icinga_Web_2_mit_Icinga_2_verwenden | *https://www.thomas-krenn.com/de/wiki/Icinga_Web_2_mit_Icinga_2_verwenden | ||
+ | *http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/plugin-check-commands | ||
+ | *http://www.modius-techblog.de/linux/icinga-2-tutorials/ |
Aktuelle Version vom 19. November 2018, 14:41 Uhr
install icinga2
icinga2 repo hinzufügen
- add-apt-repository -y ppa:formorer/icinga
listen neu laden
- apt-get update
icinga2 installation
- apt-get install icinga2 icingaweb2
MySQL Server und IDO Schnittstelle installieren
- apt-get install mysql-server mysql-client
- apt-get install icinga2-ido-mysql
root Password für Mysql
enable IDO Features
konfigureren der IDO Datenbank
passwort für icinga-ido-mysql
Features eaktivieren
- icinga2 feature enable ido-mysql
- icinga2 feature enable command
Features listen
- icinga2 feature list
restart icinga2
- systemctl restart icinga2.service
User anlgen
- addgroup --system icingacmd
Adding group `icingacmd' (GID 119) ...
- usermod -a -G icingacmd www-data
- id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data),119(icingacmd)
installation diverser pakete
- apt-get install libapache2-mod-php7.0 libapache2-mod-php php-intl php-xml php-gd php-imagick php-pgsql php7.0-mysql
Icinga Web 2 Installation
- apt-get install icingaweb2
show tokken
- icingacli setup token create
- icingacli setup token show
timezone setzen
date.timezone = europe/berlin
eintragen in
vi /etc/php/7.0/apache2/php.ini
Zugriff auf den Token freischalten
- addgroup --system icingaweb2
- usermod -a -G icingaweb2 www-data
- systemctl restart apache2.service
Setup icinga Web2
troubleshoting
bei problemen mit den zugriffsrechte
chmod 777 /etc/icingaweb2/modules/ chown -R www-data:icingaweb2 modules/