Icinga-web ubuntu 16.04: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
David (Diskussion | Beiträge)
 
(4 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==
==MySQL Server und IDO Schnittstelle installieren==
*apt-get install mysql-server mysql-client icinga2-ido-mysql
*apt-get install mysql-server mysql-client  
*apt-get install icinga2-ido-mysql
===root Password für Mysql===
===root Password für Mysql===
[[Datei:icinga2-mysql1.png]]
[[Datei:icinga2-mysql1.png]]
Zeile 34: Zeile 37:
==installation diverser pakete==
==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
*apt-get install libapache2-mod-php7.0 libapache2-mod-php php-intl php-xml php-gd  php-imagick php-pgsql php7.0-mysql
date.timezone = europe/berlin


=Icinga Web 2 Installation=
=Icinga Web 2 Installation=
Zeile 55: Zeile 54:


=Setup icinga Web2=
=Setup icinga Web2=
*http://icinga2/icingaweb2/setup
*http://(hostname)/icingaweb2/setup


[[Datei:icinga-web2-setup1.png]]
[[Datei:icinga-web2-setup1.png]]
Zeile 83: Zeile 82:


[[Datei:icinga-web2-setup7.png]]
[[Datei:icinga-web2-setup7.png]]


=troubleshoting=
=troubleshoting=

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










Datei:Icinga-web2-setup7.png

troubleshoting

bei problemen mit den zugriffsrechte

chmod 777  /etc/icingaweb2/modules/
chown -R www-data:icingaweb2 modules/

Links