Icinga 2 Monitoring

Icinga

1. MariaDB/MySQL installieren
2. Apache Web Server (PHP5 mit PHP 7 gibt es noch Probleme)

#Man sollte vorher noch Nagios installieren wegen den "check_*" Scripten. Siehe Nagios Doku
 
wget https://github.com/Icinga/icinga2/archive/v2.3.5.tar.gz
tar -xzf v2.3.5.tar.gz
cd icinga2-2.3.5

groupadd icinga
groupadd icingacmd
useradd -c "icinga" -s /sbin/nologin -G icingacmd -g icinga icinga
usermod -a -G icingacmd /usr/local/apach2/htdocs

mkdir build && cd build
cmake -DICINGA2_WITH_PGSQL=OFF ..
make all
make install

touch /usr/local/var/cache/icinga2/icinga2.debug.tmp
chmod 777 /usr/local/var/cache/icinga2/icinga2.debug.tmp
chown -R icinga:icinga /usr/local/var/cache/icinga2
chown -R icinga:icinga /usr/local/var/run/icinga2
chown -R icinga:icinga /usr/local/var/log/icinga2
chown -R icinga:icinga /usr/local/share/icinga2
ln -s /usr/local/nagios/lib /usr/lib/nagios/plugins
chown -R icinga:icinga /usr/local/var/spool/icinga2
chown -R icinga:icinga /usr/local/var/lib
mkdir -p /var/run/icinga2/cmd/
ln -s /usr/local/var/run/icinga2/cmd/icinga2.cmd /var/run/icinga2/cmd/icinga2.cmd
chown -R icinga:icinga /var/run/icinga2
ln -s /usr/local/mariadb-galera-10.0.19-li