Last active
August 29, 2015 14:16
-
-
Save DirkHeinke/09016d91787825ce45c8 to your computer and use it in GitHub Desktop.
basic icinga2 on debian wheezy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -O - http://debmon.org/debmon/repo.key 2>/dev/null | apt-key add - | |
echo 'deb http://debmon.org/debmon debmon-wheezy main' >/etc/apt/sources.list.d/debmon.list | |
apt-get update | |
apt-get install -y icinga2 mysql-server mysql-client icinga2-ido-mysql apache2 git php5 libapache2-mod-php5 php5-mysql php5-intl php5-gd php5-imagick | |
icinga2 feature enable ido-mysql command | |
service icinga2 restart | |
usermod -a -G nagios www-data | |
git clone git://git.icinga.org/icingaweb2.git | |
mv icingaweb2 /usr/share/icingaweb2 | |
/usr/share/icingaweb2/bin/icingacli setup config webserver apache --document-root /usr/share/icingaweb2/public > /etc/apache2/conf.d/icingaweb2.conf | |
addgroup --system icingaweb2 | |
usermod -a -G icingaweb2 www-data | |
/usr/share/icingaweb2/bin/icingacli setup config directory | |
/usr/share/icingaweb2/bin/icingacli setup token create | |
a2enmod rewrite | |
echo "date.timezone = \"Europe/Berlin\"" >> /etc/php5/apache2/php.ini | |
service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment