Menu

Install Zabbix Server 3.0 on Ubuntu and Debian

Zabbix is a mature and effortless enterprise-class open source monitoring solution for network monitoring and application monitoring of millions of metrics.
Zabbix uses database like MySQLMariaDB, Oracle and IBM DB2 to store its data. Zabbix web interface is written in PHP.
Some of its key features are listed below :
  • Monitor everything which is on network like Servers, applications, database instance and network devices.
  • Zabbix provides Web based administration interface.
  • Monitoring CPU utilization of a particular process or a group of process ( proc.cpu.util)
  • Using low-level discovery rules, zabbix can discover Vmware hypervisor ( ESXI ) and Virtual machines.
  • Zabbix also supports agentless monitoring
  • Monitoring of database servers like MySQL, PostgreSQL, Oracle and Microsoft SQL Server.
  • Zabbix can also perform the task of capacity planning for your environment.
  • Zabbix is Open Source so no cost involved and can be deployed on small and large environment.
  • Hardware Monitoring using Zabbix via IPMI credentials.
  • Network Device monitoring using snmp agents.
Installing Apache, MySQL and PHP
In order to use Zabbix we required a Web Server, database server and PHP to work. In this steps we are going to set up these services, You many skip this step if you have already configured it.
$ sudo apt-get update
$ sudo apt-get install apache2 
$ sudo apt-get install mysql-server 
$ sudo apt-get install php5 php5-cli php5-common php5-mysql
Update timezone in php configuration file /etc/php5/apache2/php.ini. Like below:
[Date]
; http://php.net/date.timezone
date.timezone = 'Asia/Kolkata'
Adding Apt Repository
Before installing Zabbix first configure zabbixzone rpm repository in our system using following commands.
For Ubuntu 14.04 LTS:

$ wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb
$ sudo dpkg -i zabbix-release_3.0-1+trusty_all.deb
$ sudo apt-get update


For Debian 8:

$ wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix-release/zabbix-release_3.0-1+jessie_all.deb
$ sudo dpkg -i zabbix-release_3.0-1+jessie_all.deb
$ sudo apt-get update


For Debian 7:

$ http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix-release/zabbix-release_3.0-1+wheezy_all.deb
$ sudo dpkg -i zabbix-release_3.0-1+wheezy_all.deb
$ sudo apt-get update
Install Zabbix Server
After adding zabbix apt repository in your system use following command to install Zabbix using mysql database.
$ sudo apt-get install zabbix-server-mysql zabbix-frontend-php
Create Database Schema
Now create a database schema for your zabbix server. First use following commands to create mysql database and user for your zabbix server
$ mysql -u root -p

mysql> CREATE DATABASE zabbixdb;
mysql> GRANT ALL on zabbixdb.* to zabbix@localhost IDENTIFIED BY 'password';
mysql> FLUSH PRIVILEGES;
Now restore zabbix database schema in newly created database
$ cd /usr/share/doc/zabbix-server-mysql
$ zcat create.sql.gz | mysql -u root -p zabbixdb
Edit Zabbix Configuration File
Now edit zabbix server configuration file /etc/zabbix/zabbix_server.conf in your favorite text editor and update following entries.
DBHost=localhost
DBName=zabbixdb
DBUser=zabbix
DBPassword=password
Restart Apache and Zabbix
Zabbix creates its own apache configuration file /etc/zabbix/apache.conf. Use following command to restart Apache service.
$ sudo service apache2 restart
Zabbix server configuration file are located at /etc/zabbix/zabbix_server.conf. Restart apache using below command.
$ sudo service zabbix-server restart
Start Zabbix Web Installer
Zabbix web installer can be access using following url, Change FQDN as per you setup.
http://192.168.2.2/zabbix/ (In My Case My Server Ip)
or 
http://zabbix.hackthesec.co.in/zabbix
Replace the IP address or hostname as per your setup.
and follow the steps as per given screen shots below
Zabbix Setup Welcome Screen

This is welcome screen of zabbix web installer. Go forward by click on next button.
Click on 'Next step'
On this Step Zabbix Pre-requisites are checked and verified
Click on 'Next step'
Specify the Zabbix Database name, database user and its password.

Specify the Zabbix Server details and Port number.
Click on 'Next step' to continue.
Pre-installation summary of Zabbix Servers, click on 'Next step' to continue.
As we can see that Zabbix installation is completed successfully
When we click on 'finish' , it will re-direct us to the Zabbix web interface Console.
Use user name as 'admin' and password 'zabbix'
Zabbix Server Dashboard :

About Author:


I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Next
Newer Post
Previous
Older Post

0 comments:

Post a Comment

 
Top