manual:installation:install_from_packages:rhel_centos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
manual:installation:install_from_packages:rhel_centos [2020/10/01 12:37]
yuriii removed misleading section regarding mysql 8 on rhel 7
manual:installation:install_from_packages:rhel_centos [2021/05/28 14:59]
marinagen fixing an incorrect file name
Line 5: Line 5:
 Official Zabbix packages are available for: Official Zabbix packages are available for:
  
-|RHEL 8, CentOS 8 and Oracle Linux 8  |[[https://​www.zabbix.com/​download?​zabbix=5.0&​os_distribution=red_hat_enterprise_linux&​os_version=8&​db=mysql|Download]] ​ | +|RHEL 8, CentOS 8 and Oracle Linux 8  |[[https://​www.zabbix.com/​download?​zabbix=5.4&​os_distribution=red_hat_enterprise_linux&​os_version=8&​db=mysql|Download]] ​ |
-|RHEL 7, CentOS 7 and Oracle Linux 7  |[[https://​www.zabbix.com/​download?​zabbix=5.0&​os_distribution=red_hat_enterprise_linux&​os_version=7&​db=mysql|Download]] ​ |+
  
 Packages are available with either MySQL/​PostgreSQL database and Apache/​Nginx webserver support. Packages are available with either MySQL/​PostgreSQL database and Apache/​Nginx webserver support.
  
-<​note ​important>Zabbix 5.2 is not released yet. The download links lead to pre-5.2 packages.</​note>​+<​note> ​//Verify CA// [[:​manual/​appendix/​install/​db_encrypt/​mysql|encryption mode]] doesn'​t work on RHEL 7 with MySQL due to older MySQL libraries. </​note>​
  
-//Zabbix agent// packages and utilities //Zabbix get// and //Zabbix sender// are available for [[https://​repo.zabbix.com/​zabbix/​5.0/​rhel/​6/​x86_64/​|RHEL 6]] and [[https://​repo.zabbix.com/​zabbix/​5.0/​rhel/​5/​x86_64|RHEL 5]] as well.+//​Zabbix ​agent// packages and utilities //Zabbix get// and //Zabbix sender// are available for [[https://repo.zabbix.com/​zabbix/5.4/rhel/​7/​​x86_64/​​|RHEL 7]], [[https://​​repo.zabbix.com/​​zabbix/​​5.4/​​rhel/​​6/x86_64/|RHEL 6]] and [[https://repo.zabbix.com/​zabbix/​5.4/rhel/5/x86_64|RHEL 5]] as well.
  
-Zabbix official repository provides fping, iksemel, ​libssh2 packages as well. These packages are located in the [[https://​repo.zabbix.com/​non-supported/​|non-supported]] directory.+Zabbix official repository provides fping and libssh2 packages as well. These packages are located in the [[https://​repo.zabbix.com/​non-supported/​|non-supported]] directory.
  
 ==== Notes on installation ==== ==== Notes on installation ====
Line 28: Line 27:
   * configuring Zabbix frontend   * configuring Zabbix frontend
 If you want to run Zabbix agent as root, see [[https://​www.zabbix.com/​documentation/​5.0/​manual/​appendix/​install/​run_agent_as_root|Running agent as root]]. If you want to run Zabbix agent as root, see [[https://​www.zabbix.com/​documentation/​5.0/​manual/​appendix/​install/​run_agent_as_root|Running agent as root]].
 +
 +Zabbix web service process, which is used for [[/​manual/​web_interface/​frontend_sections/​reports/​scheduled|scheduled report generation]],​ requires Google Chrome browser. The browser is not included into packages and has to be installed manually. ​
  
 === Importing data with Timescale DB === === Importing data with Timescale DB ===
Line 33: Line 34:
 With TimescaleDB,​ in addition to the import command for PostgreSQL, also run: With TimescaleDB,​ in addition to the import command for PostgreSQL, also run:
  
-  # zcat /​usr/​share/​doc/​zabbix-server-pgsql*/​timescaledb.sql.gz | sudo -u zabbix psql zabbix+  # zcat /​usr/​share/​doc/​zabbix-sql-scripts/​postgresql/​timescaledb.sql.gz | sudo -u zabbix psql zabbix
  
 <note warning>​TimescaleDB is supported with Zabbix server only.</​note>​ <note warning>​TimescaleDB is supported with Zabbix server only.</​note>​
  
-=== Frontend installation prerequisites === 
- 
-Zabbix frontend requires additional packages not available in basic installation. You need to enable repository of optional rpms in the system you will run Zabbix frontend on: 
- 
-RHEL 7: 
- 
-  # yum-config-manager --enable rhel-7-server-optional-rpms 
- 
-<​note>​ Note that Nginx for RHEL is available in Red Hat Software Collections and in [[https://​fedoraproject.org/​wiki/​EPEL|EPEL]]. If Red Hat Software Collections are used, simply install zabbix-nginx-conf-scl package. </​note>​ 
  
 === PHP 7.2 === === PHP 7.2 ===
  
-Zabbix frontend requires PHP version **7.2 or newer** ​starting with Zabbix 5.0.  +Zabbix frontend requires PHP version **7.2 or newer**.
- +
-Note that RHEL/CentOS 7 only provide PHP 5.4. See [[:​manual/​installation/​frontend/​frontend_on_rhel7|instructions]] for installing Zabbix frontend on Red Hat Enterprise Linux/​CentOS 7. +
- +
  
 === SELinux configuration === === SELinux configuration ===
Line 76: Line 64:
 Once the required repository is added, you can install Zabbix proxy by running: Once the required repository is added, you can install Zabbix proxy by running:
  
-  # yum install zabbix-proxy-mysql+  # dnf install zabbix-proxy-mysql
  
 Substitute '​mysql'​ in the commands with '​pgsql'​ to use PostgreSQL, or with '​sqlite3'​ to use SQLite3 (proxy only). Substitute '​mysql'​ in the commands with '​pgsql'​ to use PostgreSQL, or with '​sqlite3'​ to use SQLite3 (proxy only).
Line 90: Line 78:
 Import initial schema: Import initial schema:
  
-  # zcat /​usr/​share/​doc/​zabbix-proxy-mysql*/​schema.sql.gz | mysql -uzabbix -p zabbix+  # zcat /​usr/​share/​doc/​zabbix-sql-scripts/mysql/​schema.sql.gz | mysql -uzabbix -p zabbix
  
 For proxy with PostgreSQL (or SQLite): For proxy with PostgreSQL (or SQLite):
  
-  # zcat /​usr/​share/​doc/​zabbix-proxy-pgsql*/​schema.sql.gz | sudo -u zabbix psql zabbix +  # zcat /​usr/​share/​doc/​zabbix-sql-scripts/​postgresql/​schema.sql.gz | sudo -u zabbix psql zabbix 
-  # zcat /​usr/​share/​doc/​zabbix-proxy-sqlite3*/​schema.sql.gz | sqlite3 zabbix.db+  # zcat /​usr/​share/​doc/​zabbix-sql-scripts/sqlite3/​schema.sql.gz | sqlite3 zabbix.db
  
 == Configure database for Zabbix proxy == == Configure database for Zabbix proxy ==
Line 101: Line 89:
 Edit zabbix_proxy.conf:​ Edit zabbix_proxy.conf:​
  
-  # vi /​etc/​zabbix/​zabbix_server.conf+  # vi /​etc/​zabbix/​zabbix_proxy.conf
   DBHost=localhost   DBHost=localhost
   DBName=zabbix   DBName=zabbix
Line 130: Line 118:
 Once the required repository is added, you can install Zabbix Java gateway by running: Once the required repository is added, you can install Zabbix Java gateway by running:
  
-  # yum install zabbix-java-gateway+  # dnf install zabbix-java-gateway
  
 Proceed to [[:​manual/​concepts/​java/​from_rhel_centos|setup]] for more details on configuring and running Java gateway. Proceed to [[:​manual/​concepts/​java/​from_rhel_centos|setup]] for more details on configuring and running Java gateway.
Line 141: Line 129:
   [zabbix-debuginfo]   [zabbix-debuginfo]
   name=Zabbix Official Repository debuginfo - $basearch   name=Zabbix Official Repository debuginfo - $basearch
-  baseurl=http://​repo.zabbix.com/​zabbix/​4.5/rhel/7/​$basearch/​debuginfo/​+  baseurl=http://​repo.zabbix.com/​zabbix/​5.4/rhel/8/​$basearch/​debuginfo/​
   enabled=0   enabled=0
   gpgkey=file:///​etc/​pki/​rpm-gpg/​RPM-GPG-KEY-ZABBIX-A14FE591   gpgkey=file:///​etc/​pki/​rpm-gpg/​RPM-GPG-KEY-ZABBIX-A14FE591