Install Icinga2 and Icingaweb2 monitoring on Ubuntu 14.04

# wget -O - http://packages.icinga.org/icinga.key | apt-key add -
# add-apt-repository 'deb http://packages.icinga.org/ubuntu icinga-trusty main
# apt-get update
# apt-get install icinga2
apt-get install mysql-server mysql-client
# apt-get install icinga2-ido-mysql
Enable Icinga 2's ido-mysql fetures "Yes" enter
# mysql -u root -p
mysql> CREATE DATABASE icinga;
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icinga.* TO 'icinga'@'localhost' IDENTIFIED BY 'icinga';
mysql> quit
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');
# icinga2 feature enable livestatus
# service icinga2 restart
# usermod -a -G nagios www-data
# icinga2 feature enable compatlog
# icinga2 feature enable ido-mysql
# icinga2 feature enable command
# service icinga2 restart
# apt-get install git
# git clone https://github.com/Icinga/icingaweb2.git
# mv icingaweb2 /usr/share/
# cd /usr/share
# tasksel install lamp-server
# cd icingaweb2 
# ./bin/icingacli setup config webserver apache --document-root /usr/share/icingaweb/public
vi /etc/apache2/sites-enabled/000-default.conf
After copy the output it will looks like this.
# service apache2 restart
# a2enmod rewrite
# service apache2 restart
# mkdir /etc/icingaweb2
# chmod 777 -R /etc/icingaweb2
http://host-or-ip/icingaweb2/setup
su www-data --shell=/bin/bash -c "mkdir -m 2770 /etc/icingaweb2; head -c 12 /dev/urandom | base64 | tee /etc/icingaweb2/setup.token; chmod 0660 /etc/icingaweb2/setup.token;";
# apt-get install php5-ldap
# service apache2 restart
# apt-get install php5-intl
# apt-get install php5-gd php5-imagick
# service apache2 restart

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Airflow install on Centos 7 with Mysql (no docker)

“trible shot” timer

Not So Random Software #39 — Make it simple

How can the Government be Agile?

Lesson 10 : Storing data with

Arduino companions for Nerves devices (Part 2)

Amazon QuickSight Dashboard for S3 CSV Data using Redshift Spectrum / Glue Crawler

Software Architecture Patterns — Layered Architecture Patterns

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Madeesha’s Tech Space

Madeesha’s Tech Space

DevOps Engineer

More from Medium

Taking your Machine Learning models into Enterprise Solutions — Part 2

Connect to Docker Service using hostname in Docker Swarm

Elasticsearch Workshop #5 — Scripting Part 3

Error-free installation of Owncloud Server on Windows 10 within 30 minutes using WSL!