Skip to content

Instantly share code, notes, and snippets.

@DirkHeinke
Last active August 29, 2015 14:16
Show Gist options
  • Save DirkHeinke/09016d91787825ce45c8 to your computer and use it in GitHub Desktop.
Save DirkHeinke/09016d91787825ce45c8 to your computer and use it in GitHub Desktop.
basic icinga2 on debian wheezy
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