How to Install Zabbix Monitoring Server on Ubuntu 16.04

Step by step to Install Zabbix 3.0 Monitoring Server on Ubuntu 16.04:

  1. Install Ubuntu, open terminal and login with Root
    su –
    password

  2. Update the System
    apt-get update

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

  4. 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

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

  6. Create database for Zabbix Server
    mysql -u root -p
    CREATE DATABASE zabbixdb;
    GRANT ALL on zabbixdb.* to zabbix@localhost IDENTIFIED BY ‘yourpassword’;
    FLUSH PRIVILEGES;
    exit

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

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

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

  9. Change PHP timezone

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

    Changes:
    date.timezone= Europe/London

  10. 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

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

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

  13. 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.

 

Leave a Reply

Your email address will not be published. Required fields are marked *