How to install Zabbix on Ubuntu trusty – 14.04.1 LTS

Zabbix is a network server and monitoring software. It can be used to keep track of multiple physical or virtual private servers and network devices such a printer, switches or any other network attached device that has OS or supports SNMP, IPMI and JMX.

Zabbix is the most powerful open-source monitoring system currently on the market. For full list of features visit the official website:

Ubuntu has Zabbix in its repositories, but it is outdated. We will use the official zabbix ubuntu repository to get the latest stable version of the software:

dpkg -i zabbix-release_2.0-1lucid_all.deb
apt -get update

Install the zabbix mysql server and zabbix frontend
apt-get install zabbix-server-mysql zabbix-frontend-php

apt-get install php5-mysql

Restart the MySQL service:
service mysql restart

Set zabbix MySQL user password /etc/zabbix/zabbix_server.conf:

Go into the package directory and unzip the SQL files that will create the database environment:
cd /usr/share/zabbix-server-mysql/
sudo gunzip *.gz

Login into MySQL and create the zabbix user, grant the permissions for this user and import the database environment:
create user ‘zabbix’@’localhost’ identified by ‘Your.Password.Here’;
create database zabbix;
grant all privileges on zabbix.* to ‘zabbix’@’localhost’;
flush privileges;
use zabbix
\. schema.sql
\. images.sql
\. data.sql

Copy zabbix.conf.php.example to zabbix.conf.php
cp /usr/share/doc/zabbix-frontend-php/examples/zabbix.conf.php.example /etc/zabbix/zabbix.conf.php

Edit /etc/zabbix/zabbix.conf.php and set db password:
$DB['DATABASE'] = 'zabbix';
$DB['USER'] = 'zabbix';
$DB['PASSWORD'] = 'Your.Password.Here'

cp /usr/share/doc/zabbix-frontend-php/examples/apache.conf /etc/apache2/conf-enabled/zabbix.conf

Now go to http://localhost/zabbix/ and login using default username and password:
Username = admin
Password = zabbix

Leave a Reply

CommentLuv badge