Zabbix Documentation 4.0

2.23.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


manual:installation:install_from_packages:debian_ubuntu

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
manual:installation:install_from_packages:debian_ubuntu [2018/09/10 15:21]
martins-v Zabbix server must be configured to work with Java gateway
manual:installation:install_from_packages:debian_ubuntu [2018/12/10 09:04] (current)
martins-v a proxy does not have a frontend
Line 1: Line 1:
-==== 2 Debian/​Ubuntu ====+==== 2 Debian/​Ubuntu/​Raspbian ​====
  
-=== Overview ===+==== Overview ​====
  
 Official Zabbix packages are available for:  Official Zabbix packages are available for: 
Line 7: Line 7:
   * Debian 9 (Stretch)   * Debian 9 (Stretch)
   * Debian 8 (Jessie)   * Debian 8 (Jessie)
-  * Debian 7 (Wheezy) ​ 
   * Ubuntu 18.04 (Bionic Beaver) LTS   * Ubuntu 18.04 (Bionic Beaver) LTS
   * Ubuntu 16.04 (Xenial Xerus) LTS   * Ubuntu 16.04 (Xenial Xerus) LTS
   * Ubuntu 14.04 (Trusty Tahr) LTS   * Ubuntu 14.04 (Trusty Tahr) LTS
 +  * Raspbian (Stretch)
  
-=== Adding Zabbix repository ===+==== Adding Zabbix repository ​====
  
 Install the repository configuration package. This package contains apt (software package manager) configuration files. ​ Install the repository configuration package. This package contains apt (software package manager) configuration files. ​
Line 18: Line 18:
 For **Debian 9**, run the following commands: For **Debian 9**, run the following commands:
  
-**Note!** For Debian 8, substitute '​stretch'​ with '​jessie' in the commands. For Debian 7, substitute '​stretch'​ with '​wheezy' in the commands.+**Note!** For Debian 8, substitute '​stretch'​ with '​jessie'​ in the commands.
  
-  # wget https://​repo.zabbix.com/​zabbix/​3.5/​debian/​pool/​main/​z/​zabbix-release/​zabbix-release_3.5-1+stretch_all.deb +  # wget https://​repo.zabbix.com/​zabbix/​4.0/​debian/​pool/​main/​z/​zabbix-release/​zabbix-release_4.0-2+stretch_all.deb 
-  # dpkg -i zabbix-release_3.5-1+stretch_all.deb+  # dpkg -i zabbix-release_4.0-2+stretch_all.deb
   # apt update   # apt update
  
 For **Ubuntu 18.04 (bionic)**, run the following commands: For **Ubuntu 18.04 (bionic)**, run the following commands:
  
-  # wget https://​repo.zabbix.com/​zabbix/​3.5/​ubuntu/​pool/​main/​z/​zabbix-release/​zabbix-release_3.5-1+bionic_all.deb +  # wget https://​repo.zabbix.com/​zabbix/​4.0/​ubuntu/​pool/​main/​z/​zabbix-release/​zabbix-release_4.0-2+bionic_all.deb 
-  # dpkg -i zabbix-release_3.5-1+bionic_all.deb+  # dpkg -i zabbix-release_4.0-2+bionic_all.deb
   # apt update   # apt update
  
Line 33: Line 33:
   * For Ubuntu 14.04, substitute '​bionic'​ with '​trusty'​ in the commands.   * For Ubuntu 14.04, substitute '​bionic'​ with '​trusty'​ in the commands.
  
-=== Server/​proxy/​frontend installation ===+For **Raspbian**,​ run the following commands: 
 + 
 +  # wget https://​repo.zabbix.com/​zabbix/​4.0/​raspbian/​pool/​main/​z/​zabbix-release/​zabbix-release_4.0-2+stretch_all.deb 
 +  # dpkg -i zabbix-release_4.0-2+stretch_all.deb 
 +  # apt update 
 + 
 +==== Server/​proxy/​frontend installation ​====
  
 To install Zabbix server with MySQL support: To install Zabbix server with MySQL support:
Line 48: Line 54:
  
 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).
- 
-=== Java gateway installation === 
- 
-To install Zabbix Java gateway: 
- 
-  # apt install zabbix-java-gateway 
- 
-Configuration parameters of Zabbix Java gateway may be tuned in file 
- 
-  /​etc/​zabbix/​zabbix_java_gateway.conf 
- 
-See the table on [[:​manual:​appendix:​config:​zabbix_java|this page]] for details. 
- 
-Zabbix Java gateway log file is 
- 
-  /​var/​log/​zabbix/​zabbix_java_gateway.log 
- 
-If you like to increase the logging, edit 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>​ 
- 
-To start Zabbix Java gateway: 
- 
-  # service zabbix-java-gateway restart 
- 
-To automatically start Zabbix Java gateway on boot: 
- 
-  # systemctl enable zabbix-java-gateway 
- 
-<note important>​Note that Zabbix server must be [[:​manual/​concepts/​java#​configuring_server_for_use_with_java_gateway|configured]] to work with Java gateway.</​note>​ 
  
 === Creating database === === Creating database ===
Line 93: Line 59:
 For Zabbix [[manual:​concepts:​server|server]] and [[manual:​concepts:​proxy|proxy]] daemons a database is required. It is not needed to run Zabbix [[manual:​concepts:​agent|agent]]. ​ For Zabbix [[manual:​concepts:​server|server]] and [[manual:​concepts:​proxy|proxy]] daemons a database is required. It is not needed to run Zabbix [[manual:​concepts:​agent|agent]]. ​
  
-<note warning>If Zabbix server and proxy are installed on the same host, their databases must be created with different names!</​note>​+<note warning>Separate databases are needed for Zabbix server and Zabbix ​proxy; they cannot use the same database. Therefore, if they are installed on the same host, their databases must be created with different names!</​note>​
  
 Create the database using the provided instructions for [[manual:​appendix:​install:​db_scripts#​mysql|MySQL]] or [[manual:​appendix:​install:​db_scripts#​postgresql|PostgreSQL]]. Create the database using the provided instructions for [[manual:​appendix:​install:​db_scripts#​mysql|MySQL]] or [[manual:​appendix:​install:​db_scripts#​postgresql|PostgreSQL]].
Line 120: Line 86:
 === Configure database for Zabbix server/​proxy === === Configure database for Zabbix server/​proxy ===
  
-Edit zabbix_server.conf ​or zabbix_proxy.conf to use the created database. For example:+Edit zabbix_server.conf ​(and zabbix_proxy.confto use their respective databases. For example:
  
   # vi /​etc/​zabbix/​zabbix_server.conf   # vi /​etc/​zabbix/​zabbix_server.conf
Line 158: Line 124:
   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 163: Line 130:
 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.
  
-=== Agent installation ===+Note that a Zabbix proxy does not have a frontend; it communicates with Zabbix server only. 
 + 
 +==== Agent installation ​====
  
 To install the agent, run To install the agent, run
Line 173: Line 142:
   # service zabbix-agent start   # service zabbix-agent start
  
 +==== Java gateway installation ====
 +
 +It is required to install [[:​manual/​concepts/​java|Java gateway]] only 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:
 +
 +  # apt install zabbix-java-gateway
 +
 +Proceed to [[:​manual/​concepts/​java/​from_debian_ubuntu|setup]] for more details on configuring and running Java gateway.