Setup Icinga Monitoring Tool on Ubuntu 14.10

Icinga Logo

Icinga is a fork of famous Ngaios monitoring tool, it is very compatible with Nagios and can be integrated with Nagios plugins. Icinga is very similar to Nagios, so you wont find any difficult in moving to Icinga. Icinga is one step ahead on multiple factors, the import factor is advanced reporting using we based jasper reports, the most improved web interface and its comes as virtual appliance.

This post will help you to setup Icinga on Ubuntu 14.10.

Install Icinga:

Before we go ahead, lets add icinga repository.

$ sudo add-apt-repository ppa:formorer/icinga

Update respositories.

$ sudo apt-get update

Install icinga with IDO utils.

$ sudo apt-get install icinga icinga-doc icinga-idoutils mysql-server libdbd-mysql mysql-client

During the installation of packages, setup will prompt you to give input for further configuration of icinga.

  1. Configuring mysql-server-5.5 : New password for the MySQL “root” user
  2. Configuring mysql-server-5.5 :  Repeat password for the MySQL “root” user
  3. Postfix Configuration  : Internet Site
  4. Postfix Configuration: fully qualified domain name (FQDN)
  5. Configuring icinga-cgi : Icinga web administration password for icingaadmin.
  6. Configuring icinga-cgi :  Re-enter password
  7. Configuring icinga-common : Use external commands with Icinga, just give YES.
  8. Configuring icinga-idoutils : give Yes on Configure database for icinga-idoutils with dbconfig-common.
  9. Configuring icinga-idoutils : Chose MySQL as a database.
  10. Configuring icinga-idoutils  : Enter MySQL root password that you set on setp 1.
  11. Configuring icinga-idoutils : Enter  MySQL application password for icinga-idoutils
  12. Configuring icinga-idoutils : Password confirmation

Enable ido2db daemon to start during system boot, to do that edit the configuration file.

$ sudo nano /etc/default/icinga


# start ido2db daemon (no/yes)


# start ido2db daemon (no/yes)

Now start ido2db service.

$ sudo service ido2db start

Enable idomod module by copying sample idoutils config file to icinga’s config diretory.

$ sudo cp /usr/share/doc/icinga-idoutils/examples/idoutils.cfg-sample /etc/icinga/modules/idoutils.cfg

Restart icinga service.

$ sudo service icinga restart

Note: Authendications are stored in /etc/icinga/htpasswd.users, you can use following command to add new users.

$ sudo htpasswd /etc/icinga/htpasswd.users youruser

Access Icinga:

Now you can access icinga interface by vistiting http://your-ip-address/icinga on web browser. You will be authendicated by icinga before entering in to interface, default user name is “icingaadmin” and password that assigned during the installation (Step 5).

Ubuntu 14.10 - Icinga Main dash board
Ubuntu 14.10 – Icinga Main dash board

Click on service details to check the status.

Ubuntu 14.10 - Icinga Services dash board
Ubuntu 14.10 – Icinga Services dash board


If you get any unknown waring for ping check.

CentOS 7 - Icinga Ping Unknown Warning
Ubuntu 14.10 – Icinga Ping Unknown Warning

please execute the following command in the terminal to resolve the issue.

$ sudo chmod u+s /bin/ping

If you get any critical error for disk “DISK CRITICAL – /run/user/112/gvfs is not accessible: Permission denied”

Ubuntu 14.10 - Disk Access Denied
Ubuntu 14.10 – Permission Denied

Edit disk.cfg file.

$ sudo nano /etc/nagios-plugins/config/disk.cfg

Append -A -i .gvfs to check_all_disks definition which is used by icinga.


command_line    /usr/lib/nagios/plugins/check_disk -w '$ARG1$' -c '$ARG2$' -e


command_line    /usr/lib/nagios/plugins/check_disk -w '$ARG1$' -c '$ARG2$' -e -A -i .gvfs

Restart icinga, every time you edit a file.

$ sudo service icinga restart

That’s All!. You have successfully installed Icinga on Ubuntu 14.10.


Share This Post

  • Stefaan De Wilde


    Any idea how to add windows-servers (2012 R2) to monitor with icinga with this setup ?
    What do i need to do to add them to a icinga monitoring setup ?

    I would like to do it with

    Yours sincerly

    Stefaan De Wilde