LÀM SAO ĐỂ TẠO RA ZABBIX

Currently Zabbix 3.4.3 (https://zabbix.itim.vn) is running on VM zbx-server1v-virt.itim.vn (bare metal node virt1v.itim.vn)

  • SMS notification numbers:
    • 98.681.4021 – VDC Datacenter

New Zabbix server (zbx-server1v-virt.itim.vn)

  • Zabbix Server Installation
  • Zabbix Proxy Installation

How to install Zabbix server:

  • Use Debian 9 host, with network and security repositories added into apt source lists.
  • Add Zabbix repo and snmp-mib-downliader
        wget http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+stretch_all.deb;
        dpkg -i zabbix-release_3.4-1+stretch_all.deb;
        apt-get update;
        wget http://ftp.us.debian.org/debian/pool/non-free/s/snmp-mibs-downloader/snmp-mibs-downloader_1.1+nmu1_all.deb;
        dpkg -i snmp-mibs-downloader_1.1+nmu1_all.deb;
    

You can ignore dependency errors at this step (it will be resolved later).

  • Stop Mysql Slave process if any
        MariaDB [(none)]> slave stop;
    
        iptables -A INPUT -s <MysqlMasterIP> -p tcp -m tcp --sport 3306 -j DROP
    
  • Install package coccoc-zabbix-server-config-stretch (if something above will fail – package will exit with notification about it) and follow the output instructions
        apt-get install coccoc-zabbix-server-config-stretch
    
  • Create mysql user zabbix and grant access to db ‘zabbix’ (password in zabbix server config)
        use zabbix;
        GRANT ALL ON zabbix.* TO zabbix@localhost IDENTIFIED BY "(password in zabbix server config)";
        FLUSH PRIVILEGES;
    
  • Install package coccoc-net-zabbix-server-tools
        apt-get install coccoc-net-zabbix-server-tools
    
  • Run partitioning script
        /etc/cron.daily/zabbix-housekeeping
    
  • Restart zabbix server
        systemctl restart zabbix-server.service
    
  • Use
        tailf /var/log/zabbix/zabbix_server.log
    

to observe a Zabbix DB upgrade (if any) or errors (if any)

 

 

As described in https://trac.coccoc.com/coccoc/ticket/472946

  • Installation
    • Add official zabbix repo to apt <https://www.zabbix.com/documentation/3.4/manual/installation/install_from_packages/debian_ubuntu>
      • Deb 9
            wget http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+stretch_all.deb
            dpkg -i zabbix-release_3.4-1+stretch_all.deb
            apt-get update
            apt-get install mariadb-server zabbix-proxy-mysql smistrip patch
            wget http://ftp.us.debian.org/debian/pool/non-free/s/snmp-mibs-downloader/snmp-mibs-downloader_1.1+nmu1_all.deb && dpkg -i snmp-mibs-downloader_1.1+nmu1_all.deb
        
    • Create DB
          create database zabbix_proxy_vdc character set utf8 collate utf8_bin;
          grant all privileges on zabbix_proxy_vdc.* to zabbix@localhost identified by '################';
          flush privileges;
      
          zcat /usr/share/doc/zabbix-proxy-mysql/schema.sql.gz | mysql -uzabbix -p zabbix_proxy_vdc
      
  • Zabbix proxy configuration:
    • Install package coccoc-zabbix-proxy-config-vdc
    • Make sure that you have a correct password to MariaDB DB in zabbix_proxy.conf
    • Restart zabbix proxy process

Leave a Comment

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

Scroll to Top