How to install icinga on Ubuntu 16.04
To install icinga on Ubuntu 16.04
Icinga is an open source monitoring system that checks the status of hosts and services. It uses the Nagios Remote Plugin Executor (NRPE), to monitor their local resources. Installation of icinga is explained in this article.
Add repository link in " sources.list” file and save it.
root@linuxhelp:~# nano /etc/apt/sources.list
deb http://ppa.launchpad.net/formorer/icinga/ubuntu xenial main deb-src http://ppa.launchpad.net/formorer/icinga/ubuntu xenial main
Update the packages by using “ apt-get update” command.
root@linuxhelp:~# apt-get update
Get:1 http://ppa.launchpad.net/formorer/icinga/ubuntu xenial InRelease [17.5 kB]
Ign:1 http://ppa.launchpad.net/formorer/icinga/ubuntu xenial InRelease
Hit:2 http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/gns3/ppa/ubuntu xenial InRelease
Get:4 http://ppa.launchpad.net/formorer/icinga/ubuntu xenial/main Sources [1,528 B]
Get:5 http://ppa.launchpad.net/formorer/icinga/ubuntu xenial/main amd64 Packages [3,432 B]
Get:6 http://ppa.launchpad.net/formorer/icinga/ubuntu xenial/main i386 Packages [3,444 B]
Get:7 http://ppa.launchpad.net/formorer/icinga/ubuntu xenial/main Translation-en [1,976 B]
Hit:8 http://in.archive.ubuntu.com/ubuntu xenial InRelease
.
.
.
Get:14 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [240 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [113 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [44.2 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [96.6 kB]
Get:18 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [154 kB]
Install “ icinga” and its dependencies by running the following command.
root@linuxhelp:~# apt-get install icinga icinga-doc icinga-idoutils mysql-server libdbd-mysql mysql-client
During the installation, Set the mysql root password.
Click “ OK” in the Postfix configuration wizard.
Choose the mail configuration type and press “ OK” .
Enter the system mail name and Click " OK"
To configure icinga, enter web admin password in web panel. Default user name is “ icingaadmin”
Set the external command permission in icinga configuration.
Configure database for “ icinga-idoutils” .
Then set mysql application db password for icinga-idoutils.
Restart “ icinga” service.
root@linuxhelp:~# service icinga restart
Then check icinga status by using following command.
root@linuxhelp:~# service icinga status icinga.service - LSB: icinga host/service/network monitoring and management system Loaded: loaded (/etc/init.d/icinga bad vendor preset: enabled) Active: active (running) since Wed 2016-07-06 16:24:31 IST 13s ago Docs: man:systemd-sysv-generator(8) Process: 14096 ExecStop=/etc/init.d/icinga stop (code=exited, status=0/SUCCESS) Process: 14120 ExecStart=/etc/init.d/icinga start (code=exited, status=0/SUCCESS) Tasks: 1 (limit: 512) CGroup: /system.slice/icinga.service ??14157 /usr/sbin/icinga -d /etc/icinga/icinga.cfg Jul 06 16:24:31 linuxhelp icinga[14156]: Icinga 1.13.3 starting... (PID=14156) Jul 06 16:24:31 linuxhelp icinga[14156]: Local time is Wed Jul 06 16:24:31 IST 2016 Jul 06 16:24:31 linuxhelp icinga[14156]: LOG VERSION: 2.0 Jul 06 16:24:31 linuxhelp icinga[14156]: Warning: Object definition type ' hostextinfo' is Jul 06 16:24:31 linuxhelp icinga[14156]: Warning: Variable ' normal_check_interval' with v Jul 06 16:24:31 linuxhelp icinga[14156]: Warning: Variable ' retry_check_interval' with va Jul 06 16:24:31 linuxhelp icinga[14120]: ...done. Jul 06 16:24:31 linuxhelp systemd[1]: Started LSB: icinga host/service/network monitoring Jul 06 16:24:31 linuxhelp icinga[14157]: Finished daemonizing... (New PID=14157) Jul 06 16:24:31 linuxhelp icinga[14157]: Event loop started... lines 1-20/20 (END)
Restart “ apache2” and “ mysql” services.
root@linuxhelp:~# service apache2 restart root@linuxhelp:~# service mysql restart
Open the web browser and type http://< IP_address> /icinga
Enter the default username and password, given at the installation time.
The icinga monitoring wizard appears as follows.
Comments ( 1 )