Áú»¢¶Ä²©

3 SUSE Linux Enterprise Server

Overview

Official Áú»¢¶Ä²© 6.0 LTS packages for SUSE Linux Enterprise Server are available on Áú»¢¶Ä²© website.

Áú»¢¶Ä²© agent packages and utilities Áú»¢¶Ä²© get and Áú»¢¶Ä²© sender are available on Áú»¢¶Ä²© Official Repository for and .

Using SLES 15 with SP3 or older is not recommended and may contain limitations. Also, please note that the Verify CA encryption mode does not work on SLES 12 (all minor OS versions) with MySQL due to older MySQL libraries.

Adding Áú»¢¶Ä²© repository

Install the repository configuration package. This package contains yum (software package manager) configuration files.

SLES 15:

rpm -Uvh --nosignature https://repo.zabbix.com/zabbix/6.0/sles/15/x86_64/zabbix-release-latest.sles15.noarch.rpm
       zypper --gpg-auto-import-keys refresh 'Áú»¢¶Ä²© Official Repository' 

SLES 12:

rpm -Uvh --nosignature https://repo.zabbix.com/zabbix/6.0/sles/12/x86_64/zabbix-release-latest.sles12.noarch.rpm
       zypper --gpg-auto-import-keys refresh 'Áú»¢¶Ä²© Official Repository' 

Please note that Áú»¢¶Ä²© web service process, which is used for scheduled report generation, requires Google Chrome browser. The browser is not included into packages and has to be installed manually.

Server/frontend/agent installation

To install Áú»¢¶Ä²© server/frontend/agent with MySQL support:

zypper install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent

Substitute 'apache' in the command with 'nginx' if using the package for Nginx web server. See also: Nginx setup for Áú»¢¶Ä²© on SLES 12/15.

Substitute 'zabbix-agent' with 'zabbix-agent2' in these commands if using Áú»¢¶Ä²© agent 2 (only SLES 15).

To install Áú»¢¶Ä²© proxy with MySQL support:

zypper install zabbix-proxy-mysql zabbix-sql-scripts

Substitute 'mysql' in the commands with 'pgsql' to use PostgreSQL.

The package 'zabbix-sql-scripts' contains database schemas for all supported database management systems for both Áú»¢¶Ä²© server and Áú»¢¶Ä²© proxy and will be used for data import.

Creating database

For Áú»¢¶Ä²© server and proxy daemons a database is required. It is not needed to run Áú»¢¶Ä²© agent.

Separate databases are needed for Áú»¢¶Ä²© server and Áú»¢¶Ä²© proxy; they cannot use the same database. Therefore, if they are installed on the same host, their databases must be created with different names!

Create the database using the provided instructions for MySQL or PostgreSQL.

Importing data

Now import initial schema and data for the server with MySQL:

zcat /usr/share/packages/zabbix-sql-scripts/mysql/create.sql.gz | mysql -uzabbix -p zabbix

You will be prompted to enter your newly created database password.

With PostgreSQL:

zcat /usr/share/packages/zabbix-sql-scripts/postgresql/create.sql.gz | sudo -u zabbix psql zabbix

With TimescaleDB, in addition to the previous command, also run:

zcat /usr/share/packages/zabbix-sql-scripts/postgresql/timescaledb.sql.gz | sudo -u <username> psql zabbix

TimescaleDB is supported with Áú»¢¶Ä²© server only.

For proxy, import initial schema:

zcat /usr/share/packages/zabbix-sql-scripts/mysql/schema.sql.gz | mysql -uzabbix -p zabbix

For proxy with PostgreSQL:

zcat /usr/share/packages/zabbix-sql-scripts/postgresql/schema.sql.gz | sudo -u zabbix psql zabbix

Configure database for Áú»¢¶Ä²© server/proxy

Edit Áú»¢¶Ä²© server configuration file (/etc/zabbix/zabbix_server.conf) and, if required, Áú»¢¶Ä²© proxy configuration file (/etc/zabbix/zabbix_proxy.conf) for their respective databases. For example:

DBHost=localhost
       DBName=zabbix
       DBUser=zabbix
       DBPassword=<password>

In DBPassword use Áú»¢¶Ä²© database password for MySQL; PostgreSQL user password for PostgreSQL.

Use DBHost= with PostgreSQL. You might want to keep the default setting DBHost=localhost (or an IP address), but this would make PostgreSQL use a network socket for connecting to Áú»¢¶Ä²©.

Áú»¢¶Ä²© frontend configuration

Depending on the web server used (Apache/Nginx) edit the corresponding configuration file for Áú»¢¶Ä²© frontend:

  • For Apache the configuration file is located in /etc/apache2/conf.d/zabbix.conf. Some PHP settings are already configured. But it's necessary to uncomment the "date.timezone" setting and for you.
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 max_input_vars 10000
       php_value always_populate_raw_post_data -1
       # php_value date.timezone Europe/Riga
  • The zabbix-nginx-conf package installs a separate Nginx server for Áú»¢¶Ä²© frontend. Its configuration file is located in /etc/nginx/conf.d/zabbix.conf. For Áú»¢¶Ä²© frontend to work, it's necessary to uncomment and set listen and/or server_name directives.
# listen 80;
       # server_name example.com;
  • Áú»¢¶Ä²© uses its own dedicated php-fpm connection pool with Nginx:

Its configuration file is located in /etc/php7/fpm/php-fpm.d/zabbix.conf. Some PHP settings are already configured. But it's necessary to set the right setting for you.

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[max_input_vars] = 10000
       ; php_value[date.timezone] = Europe/Riga

Now you are ready to proceed with frontend installation steps which will allow you to access your newly installed Áú»¢¶Ä²©.

Note that a Áú»¢¶Ä²© proxy does not have a frontend; it communicates with Áú»¢¶Ä²© server only.

Starting Áú»¢¶Ä²© server/agent process

Start Áú»¢¶Ä²© server and agent processes and make it start at system boot.

With Apache web server:

systemctl restart zabbix-server zabbix-agent apache2 php-fpm
       systemctl enable zabbix-server zabbix-agent apache2 php-fpm

Substitute 'apache2' with 'nginx' for Nginx web server.

Installing debuginfo packages

To enable debuginfo repository edit /etc/zypp/repos.d/zabbix.repo file. Change enabled=0 to enabled=1 for zabbix-debuginfo repository.

[zabbix-debuginfo]
       name=Áú»¢¶Ä²© Official Repository debuginfo
       type=rpm-md
       baseurl=http://repo.zabbix.com/zabbix/6.0/sles/15/x86_64/debuginfo/
       gpgcheck=1
       gpgkey=http://repo.zabbix.com/zabbix/6.0/sles/15/x86_64/debuginfo/repodata/repomd.xml.key
       enabled=0
       update=1

This will allow you to install zabbix-<component>-debuginfo packages.