• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install zabbix in Ubuntu

{{postValue.id}}

To install Zabbix in Ubuntu

Zabbix is an enterprise open source monitoring software for networks and applications. It is designed for monitoring and tracking the status of various network services, servers and many more network hardware devices. Installation of Zabbix in Ubuntu is explained in this article.

Features

  • High performance, high capacity able to monitor hundreds of thousands of devices.
  • Auto-discovery of servers and network devices
  • Low-level discovery
  • Distributed monitoring with centralized web administration
  • Support for both polling and trapping mechanisms
  • High performance agents
  • JMX monitoring
  • Web monitoring
  • Secure user authentication
  • Flexible user permissions
  • Web-based interface


To install Zabbix

Open the configuration file of PHP and change your location.

root@linuxhelp1:~# vim /etc/php5/apache2/php.ini 
date.timezone=’ Asia/Kolkata’ 


Download the Zabbix package by below command.

root@linuxhelp:/home/user1# wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb 
--2016-10-08 17:15:46--  http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb
Length: 2694 (2.6K) [application/x-debian-package]
.
.
.

Saving to: ‘ zabbix-release_3.0-1+trusty_all.deb’ 
zabbix-release_3.0-1+trusty_ 100%[=============================================> ]   2.63K  --.-KB/s   in 0s
2016-10-08 17:15:47 (13.1 MB/s) - ‘ zabbix-release_3.0-1+trusty_all.deb’  saved [2694/2694]


Add the Zabbix pakage into repository

root@linuxhelp:/home/user1# dpkg -i zabbix-release_3.0-1+trusty_all.deb 
Selecting previously unselected package zabbix-release.
(Reading database ... 184596 files and directories currently installed.)
Preparing to unpack zabbix-release_3.0-1+trusty_all.deb ...
Unpacking zabbix-release (3.0-1+trusty) ...
Setting up zabbix-release (3.0-1+trusty) ...


Update the machine by running the following command.

root@linuxhelp:/home/user1# apt-get update 
Hit http://in.archive.ubuntu.com wily InRelease
Hit http://ppa.launchpad.net wily InRelease
Hit http://security.ubuntu.com wily-security InRelease
Hit http://in.archive.ubuntu.com wily-updates InRelease
.
.
.
Hit http://in.archive.ubuntu.com wily-backports/restricted Translation-en
Hit http://in.archive.ubuntu.com wily-backports/universe Translation-en
Fetched 12.9 kB in 11s (1,104 B/s)
Reading package lists... Done


Utilize the following command to install the Zabbix package.

root@linuxhelp:/home/user1# apt-get install zabbix-server-mysql zabbix-frontend-php 
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
.
.
. 
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (225-1ubuntu9) ...
Processing triggers for libapache2-mod-php5 (5.6.11+dfsg-1ubuntu3.4) ...


Create database for zabbix by running the following command.

root@linuxhelp1:~# mysql -u root -p 
Enter password:
mysql>  create database zabbix_db 
Query OK, 1 row affected (0.07 sec)
mysql>  grant all on zabbix_db.* to ' zabbix' @' localhost'  identified by ' 12345'  
Query OK, 0 rows affected (0.05 sec)
mysql>  flush privileges 
Query OK, 0 rows affected (0.00 sec)
mysql>  q 
Bye


Go to the following Zabbix directory to import the database schema into newly created Zabbix database.

root@linuxhelp1:~# cd /usr/share/doc/zabbix-server-mysql/
root@linuxhelp1:/usr/share/doc/zabbix-server-mysql# gunzip create.sql.gz
root@linuxhelp1:/usr/share/doc/zabbix-server-mysql# mysql -u root -p zabbix_db <  create.sql 
Enter password:


Open the configuration file of Zabbix. Enable and enter zabbix database details as shown below.

root@linuxhelp1:~# vim /etc/zabbix/zabbix_server.conf 
DBHost=localhost
DBName=zabbix_db
DBSchema=create.sql
DBUser=zabbix
DBPassword=12345


Restart Apache service and Zabbix by running the following command.

root@linuxhelp1 # service apache2 restart
root@linuxhelp1 # service zabbix-server restart 


Open the Browser and navigate to http://< IP_address> /zabbix/setup.php
Zabbix_Welcome
Click next step to proceed with the Zabbix graphical installation.
Graphic_installation
Check the PHP configuration and click next
PHP configuration
PHP_Option
Enter the databases fields required for Zabbix.
Datafields_Zabbix
Enter the Zabbix server details and click Next step.
Zabbix_Server_details
Check the summary of Zabbix installation.
Zabbix installation
Now the Zabbix server is installed successfully, click finish to launch.
Installation_completed
Login to Zabbix server using the default username (admin) and password (zabbix).
Login_credentials
Dashboard of Zabbix appears and now you start monitoring your server.
Zabbix_dashboard
To monitoring server reports, click on Reports.
Status_of_Zabbix

To montoring CPU loads, click on Monitoring interface.
Zabbix_Monitoring_interface


Tags:
mason
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

Does that mean zabbix.com will become more closed?

A

No, Zabbix is still and will continue to be released under a Open Source Licence.

Q

Sounds neat, how do I get involved?

A

Right now most of the conversations regarding Zabbix.org are occurring on IRC. Come join us on #zabbix on freenode.

Q

How do I migrate from one database to another?

A

Dump data only (for MySQL, use flag -t or --no-create-info), create the new database using schema files from Zabbix and import the data.

Q

What are sticky topics?

A

'Sticky' topics are topics determined to be important by moderators or administrators. They are listed at the top of the topic list and remain 'stuck' to the top of the listing, even if they haven't had any posts recently. Their purpose is to keep important information visible and accessible at all times.

Q

My graphs have dots instead of lines or empty areas. Why so?

A

Data is missing. This can happen for a variety of reasons - performance problems on Zabbix database, Zabbix server, network, monitored devices.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Ryan ?
how to use visual traceroute tool

Am using traceroute command to check for the route. i got this tool while surfing. So pls help me out installation and usage of Visual traceroute tool.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.