How To Install Zabbix 2.2 on Ubuntu 14.04 LTS

7
This post may or may not work. Please use at your own risk. Visit How To Install Icinga 2 on CentOS 7 / RHEL 7 for the latest documentation.

Zabbix is an open source software for monitoring the network services, servers and other network devices, created by Alexei Vladishev. Zabbix backend written in C and uses PHP for the front end, supports MySQL, PostgreSQL, SQLite, Oracle or IBM DB2 databases.

Features

  1. It can verify the availability of the standard services such as SMTP or HTTP with out installing any software on the remote host.
  2. It can also monitor CPU, Memory, Disk and other resources on Windows or Unix hosts by installing Zabbix client on it.
  3. It also offers support for monitoring via SNMP, TCP, and ICMP.
  4. It supports real-time notifications

This guide will help you to setup the Zabbix on Ubuntu 14.04

Prerequisites

Install the latest release packages, and this contains the repository configuration.

sudo wget http://repo.zabbix.com/zabbix/2.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.2-1+trusty_all.deb
sudo dpkg -i zabbix-release_2.2-1+trusty_all.deb
sudo apt-get update

Install Zabbix

Install the following packages. This will install the Zabbix server and web with MySQL.

sudo apt-get install zabbix-server-mysql zabbix-frontend-php

Configure Database

Previous command itself invoke the MySQL and Zabbix database configuration. If you already have the MySQL configured on the server, please skip the first two steps.

Step 1: Configure the root password for MySQL.

MySQL - Root Password
MySQL – Root Password

Step 2: Confirm the root password.

MySQL - Confirm Root Password
MySQL – Confirm Root Password

Step 3: Next screen, it will ask you to configure the database for the Zabbix, you either accept or cancel it. Here i chose yes for automatic database configuration.

Zabbix - Database Configuration
Zabbix – Database Configuration

Step 4: Enter the password for the database user “zabbix” (zabbix user will be created by the installer), this password has been entered while setting up Zabbix.

Zabbix Database Password
Zabbix Database Password

Step 5: Confirm the password for the database user.

Zabbix Confirm Database Password
Zabbix Confirm Database Password

The following troubleshooting section is only applicable to those who facing 404 not found error while accessing Zabbix setup URL.

Troubleshooting

After configuring the database, when I tried to access the Zabbix setup URL (http://your-ip-address/zabbix). I got 404 not found page, after a lot of google search; found nothing. Later I decided to check the files created by the package, in last I found apache.conf file in /etc/zabbix.

Copy the apache.conf file to apache2 directory

sudo cp /etc/zabbix/apache.conf /etc/apache2/sites-enabled/zabbix.conf

Edit copied the file to setup the timezone.

sudo vi /etc/apache2/sites-enabled/zabbix.conf

# php_value date.timezone Europe/Riga

Change the date.timezone according to your time zone.

Restart the apache2 service.

sudo /etc/init.d/apache2 restart

After performing the above steps, I was able to access the URL without any issue.

Setup Zabbix

Visit the following URL to start setting up the Zabbix http://your-ip-address/zabbix. Click Next to continue.

Install Zabbix 2.2 on Ubuntu 14.04 - Welcome
Install Zabbix 2.2 on Ubuntu 14.04 – Welcome

Zabbix setup will check the prerequisites, will give you the status like below.

Install Zabbix 2.2 on Ubuntu 14.04 - Pre-req
Install Zabbix 2.2 on Ubuntu 14.04 – Pre-req

Enter the database information.

Zabbix Setup – Database information

Configure the server information.

Zabbix Setup – Server information

Check out the installation summary.

Install Zabbix 2.2 on Ubuntu 14.04 - Pre installation Summary
Install Zabbix 2.2 on Ubuntu 14.04 – Pre-installation Summary

Finish the setup.

Install Zabbix 2.2 on Ubuntu 14.04 - Finish
Install Zabbix 2.2 on Ubuntu 14.04 – Finish

Access Zabbix

Login with default credential (Admin/zabbix)

Install Zabbix 2.2 on Ubuntu 14.04 - Login Page
Install Zabbix 2.2 on Ubuntu 14.04 – Login Page

This how the Zabbix dashboard will look like.

Install Zabbix 2.2 on Ubuntu 14.04 - Dashboard
Install Zabbix 2.2 on Ubuntu 14.04 – Dashboard

That’s All.

You might also like