Blog

How to Install Zabbix Monitoring on Ubuntu Server

Step by step guide to Install Zabbix on Ubuntu Server:

Prerequisites:

  • Ubuntu Server 16.04.2 LTS
  • Some linux knowledge
  • Cup of beverage
 
  1. Update the System
    apt-get update

  2. Install LAMP Server
    apt-get install lamp-server^

  3. Add Zabbix Server Repositories to Ubuntu 16.04
    wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+xenial_all.deb
    dpkg -i zabbix-release_3.0-1+xenial_all.deb
    apt-get update

  4. Install Zabbix Server
    apt-get install zabbix-server-mysql zabbix-frontend-php

  5. Create database for Zabbix Server
    mysql -u root -p
    CREATE DATABASE zabbixdb;
    GRANT ALL on zabbixdb.* to [email protected] IDENTIFIED BY ‘yourpassword’;
    FLUSH PRIVILEGES;
    exit

  6. Restart zabbix database schema in newly created database
    cd /usr/share/doc/zabbix-server-mysql
    zcat create.sql.gz | mysql -u root -p zabbixdb

  7. Edit Zabbix Configuration File
    nano /etc/zabbix/zabbix_server.conf

    Update the following
    DBHost=localhost
    DBName=zabbixdb
    DBUser=zabbix
    DBPassword=yourpassword

  8. Change PHP timezone

    cd /etc/php/7.0/apache2
    nano php.ini

    Changes:
    date.timezone= Europe/London

  9. Install PHP Extensions and MIB

    apt-get install php7.0-xml
    apt-get install php7.0-bcmath
    apt-get install php7.0-mbstring
    apt-get install snmp-mibs-downloader

  10. Restart Services
    service apache2 restart
    service zabbix-server restart

  11. Start Zabbix Server Web Installer
    http://localhost/zabbix
    Click Next

  12. Log into Zabbix
    http://localhost/zabbix
    username: admin
    password: zabbix

I suggest you read up on Zabbix documentation and specifically the concepts and definitions. In the next post I will cover creating users, monitoring Windows OS, network devices, ping and tcp port monitoring and setting up email alerts.