domingo, 3 de setembro de 2017

HOW TO INSTALL ZABBIX-SERVER 3.4.1 ON UBUNTU SERVER 16.04 LTS

apt-get update
apt-get install apache2
apt-get install php (will be install php 7)
apt-get install mysql
apt-get install mysql-server
apt-get install php7.0-xml php7.0-bcmath php7.0-mbstring
apt-get install libapache2-mod-php
apt-get install  a2enmod php7.0

wget http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb
dpkg -i zabbix-release_3.4-1+xenial_all.deb
apt-get update
apt-get install zabbix-server-mysql zabbix-frontend-php

mysql -uroot -p<your_root_password>
create user 'zabbix'@'localhost' identified by 'your_zabbix_password';
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'your_zabbix_password';
flush privileges;
quit mysql database

zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix
put the zabbix_user from mysql

vi /etc/zabbix/zabbix_server.conf
add the password of zabbix user from database zabbix
service zabbix-server start
update-rc.d zabbix-server enable /etc/apache2/conf-enabled/zabbix.conf <<some times after execute this command there is a erro about locale, than you must execute this command dpkg-reconfigure locales to fix first for run again this command>>


vi /etc/zabbix/apache.conf

<IfModule mod_php7.c>
    php_value max_execution_time 300
    php_value memory_limit 128M
    php_value post_max_size 16M
    php_value upload_max_filesize 2M
    php_value max_input_time 300
    php_value always_populate_raw_post_data -1
    # php_value date.timezone Europe/Riga  <<<change for your native region>>
      php_value date.timezone America/Sao_Paulo
</IfModule>

service apache2 restart
apt-get install zabbix-agent
service zabbix-agent start

for finish, you must fix those errors:


  1. Time zone for PHP is not set (configuration parameter "date.timezone").
  2. PHP bcmath extension missing (PHP configuration parameter --enable-bcmath).
  3. PHP mbstring extension missing (PHP configuration parameter --enable-mbstring).
  4. PHP xmlwriter extension missing.
  5. PHP xmlreader extension missing.

for 1: add time zone for both field <php5 and php7> tag on,  /​etc/​apache2/​conf-enabled/zabbix.conf

for 2: you must execute apt-get install php-bcmath 
for 3: you must execute apt-get install php-mbstring
for 4: you must execute apt-get install php-xmlwriter
for 5: you must execute apt-get install php-xmlreader

for finish restart apache service and php by this way:

/etc/init.d/apache2 restart

and just finish the wizard

Source: https://www.zabbix.com/documentation/3.4/manual/installation/install#installing_frontend







Um comentário:

  1. Illuminate Zabbix Server MySQL Issue through MySQL Server 5.0 Support
    Assume on the off chance that you introduce Zabbix on Centos6 framework yet in the meantime you found that issue with your MySQL database availability then how you can tackle it? Note that, with Cognegic's MySQL Remote Support or MySQL Remote Service you will get the profound comprehension of your MySQL issues and furthermore you will get the execution subtle elements of SQL arrangement, database qualities et cetera. You can basically get in touch with us by means of dialing our without toll number and get the best help through Cognegic's MySQL Backup Database.
    For More Info: https://cognegicsystems.com/
    Contact Number: 1-800-450-8670
    Email Address- info@cognegicsystems.com
    Company’s Address- 507 Copper Square Drive Bethel Connecticut (USA) 06801

    ResponderExcluir