Zabbix Documentation 4.0

3.04.04.24.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.4Guidelines

User Tools

Site Tools


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
Next revision Both sides next revision
manual:installation:install_from_packages:rhel_centos [2018/04/04 08:13]
dimir remove duplicate note
manual:installation:install_from_packages:rhel_centos [2018/10/02 08:05]
martins-v 3.5 -> 4.0
Line 1: Line 1:
 ==== 1 Red Hat Enterprise Linux/​CentOS ==== ==== 1 Red Hat Enterprise Linux/​CentOS ====
  
-=== Overview ===+==== Overview ​====
  
 Official Zabbix packages are available for RHEL 7, CentOS 7 and Oracle Linux 7. In this documentation we will refer to all 3 using the term ''​RHEL''​. Official Zabbix packages are available for RHEL 7, CentOS 7 and Oracle Linux 7. In this documentation we will refer to all 3 using the term ''​RHEL''​.
  
-Some agent and proxy packages are available for [[http://​repo.zabbix.com/​zabbix/​4.0/​rhel/​6/​x86_64/​|RHEL 6]] and [[http://​repo.zabbix.com/​zabbix/​4.0/​rhel/​5/​x86_64|RHEL 5]] as well.+Some agent and proxy packages are available for [[https://​repo.zabbix.com/​zabbix/​4.0/​rhel/​6/​x86_64/​|RHEL 6]] and [[https://​repo.zabbix.com/​zabbix/​4.0/​rhel/​5/​x86_64|RHEL 5]] as well.
  
-=== Adding Zabbix repository ===+==== Adding Zabbix repository ​====
  
 Install the repository configuration package. This package contains yum (software package manager) configuration files. Install the repository configuration package. This package contains yum (software package manager) configuration files.
Line 13: Line 13:
 RHEL 7: RHEL 7:
  
-  # rpm -ivh http://​repo.zabbix.com/​zabbix/​4.0/​rhel/​7/​x86_64/​zabbix-release-4.0-1.el7.noarch.rpm+  # rpm -ivh https://​repo.zabbix.com/​zabbix/​4.0/​rhel/​7/​x86_64/​zabbix-release-4.0-1.el7.noarch.rpm
  
 RHEL 6: RHEL 6:
  
-  # rpm -ivh http://​repo.zabbix.com/​zabbix/​4.0/​rhel/​6/​x86_64/​zabbix-release-4.0-1.el6.noarch.rpm+  # rpm -ivh https://​repo.zabbix.com/​zabbix/​4.0/​rhel/​6/​x86_64/​zabbix-release-4.0-1.el6.noarch.rpm
  
 RHEL 5: RHEL 5:
  
-  # rpm -ivh http://​repo.zabbix.com/​zabbix/​4.0/​rhel/​5/​x86_64/​zabbix-release-4.0-1.noarch.rpm+  # rpm -ivh https://​repo.zabbix.com/​zabbix/​4.0/​rhel/​5/​x86_64/​zabbix-release-4.0-1.noarch.rpm
  
-=== Installation ​prerequisites ===+=== 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: 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:
Line 31: Line 31:
   # yum-config-manager --enable rhel-7-server-optional-rpms   # yum-config-manager --enable rhel-7-server-optional-rpms
  
-=== Server/​proxy/​frontend installation ===+==== Server/​proxy/​frontend installation ​====
  
 To install Zabbix server (available for RHEL 7, [[manual/​installation/​install_from_packages/​rhel_centos#​zabbix_frontend_and_server_on_rhel_6|deprecated on RHEL 6]]) with MySQL support: To install Zabbix server (available for RHEL 7, [[manual/​installation/​install_from_packages/​rhel_centos#​zabbix_frontend_and_server_on_rhel_6|deprecated on RHEL 6]]) with MySQL support:
Line 119: Line 119:
   php_value upload_max_filesize 2M   php_value upload_max_filesize 2M
   php_value max_input_time 300   php_value max_input_time 300
 +  php_value max_input_vars 10000
   php_value always_populate_raw_post_data -1   php_value always_populate_raw_post_data -1
   # php_value date.timezone Europe/Riga   # php_value date.timezone Europe/Riga
Line 124: Line 125:
 Now you are ready to proceed with [[manual/​installation/​install#​installing_frontend|frontend installation steps]] which will allow you to access your newly installed Zabbix. Now you are ready to proceed with [[manual/​installation/​install#​installing_frontend|frontend installation steps]] which will allow you to access your newly installed Zabbix.
  
-<​note>​Zabbix official repository provides fping, iksemel, libssh2 packages as well. These packages are located in the //[[http://​repo.zabbix.com/​non-supported/​|non-supported]]//​ directory.</​note>​+<​note>​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.</​note>​
  
 === SELinux configuration === === SELinux configuration ===
Line 142: Line 143:
  
   # service httpd restart   # service httpd restart
- 
-=== Agent installation === 
- 
-To install the agent, run 
- 
-  # yum install zabbix-agent 
- 
-To start the agent, run: 
- 
-  # service zabbix-agent start 
  
 === Zabbix frontend and server on RHEL 6 === === Zabbix frontend and server on RHEL 6 ===
Line 174: Line 165:
  
   $ rpm -ql zabbix-web | grep example.conf   $ rpm -ql zabbix-web | grep example.conf
 +
 +==== Agent installation ====
 +
 +To install the agent, run
 +
 +  # yum install zabbix-agent
 +
 +To start the agent, run:
 +
 +  # service zabbix-agent start
 +
 +==== Java gateway installation ====
 +
 +It is required to install [[:​manual/​concepts/​java|Java gateway]] if you want to monitor JMX applications. Java gateway is lightweight and does not require a database.
 +
 +Once the required [[#​adding_zabbix_repository|repository]] is added, you can install Zabbix Java gateway by running:
 +
 +  # yum install zabbix-java-gateway
 +
 +Configuration parameters of Zabbix Java gateway may be tuned in the file:
 +
 +  /​etc/​zabbix/​zabbix_java_gateway.conf
 +
 +For more details, see Zabbix Java gateway configuration [[:​manual:​appendix:​config:​zabbix_java|parameters]].
 +
 +To start Zabbix Java gateway:
 +
 +  # service zabbix-java-gateway restart
 +
 +<note important>​Note that Zabbix server [[:​manual/​concepts/​java#​configuring_server_for_use_with_java_gateway|must be configured]] to work with Java gateway.</​note>​
 +
 +To automatically start Zabbix Java gateway on boot:
 +
 +RHEL 7 and later:
 +  # systemctl enable zabbix-java-gateway
 +
 +RHEL prior to 7:
 +  # chkconfig --level 12345 zabbix-java-gateway on
 +
 +Zabbix Java gateway log file is:
 +
 +  /​var/​log/​zabbix/​zabbix_java_gateway.log
 +
 +If you like to increase the logging, edit the file:
 +
 +  /​etc/​zabbix/​zabbix_java_gateway_logback.xml
 +
 +and change ''​level=%%"​%%info%%"​%%''​ to %%"​%%debug%%"​%% or even %%"​%%trace%%"​%% (for deep troubleshooting):​
 +
 +  <​configuration scan="​true"​ scanPeriod="​15 seconds">​
 +  [...]
 +        <root level="​info">​
 +                <​appender-ref ref="​FILE"​ />
 +        </​root>​
 +  ​
 +  </​configuration>​