How to Install Zabbix in OpenSUSE Leap

To Install Zabbix in OpenSUSE Leap

Zabbix is an open source monitoring software used for networks and applications. It is designed to monitor and track the status of various network services, servers and many more network hardware devices. Installation of Zabbix in Opensuse is explained in this article.



  • High performance
  • Auto-discovery of servers and network devices
  • Low-level discovery
  • Supports both polling and trapping mechanisms
  • High performance agents
  • JMX monitoring
  • Web monitoring
  • Secure user authentication
  • Flexible user permissions
  • Web-based interface

Installation of Zabbix

Configure LAMP setup on OpenSUSE before installing Zabbix. Refer the below given link for LAMP installation.


Add the Zabbix repo file into OpenSUSE repository.

linuxhelp:/home/user1 # zypper addrepo server_monitoring

Adding repository 'server_monitoring' ....................................[done]
Repository 'server_monitoring' successfully added

Install the Zabbix and its dependency packages.

linuxhelp:/home/user1 # zypper install zabbix-server-mysql zabbix-agent zabbix-java-gateway zabbix-phpfrontend

New repository or package signing key received:
 Repository:       server_monitoring  
 (13/13) Installing: zabbix-server-mysql-2.2.14-2.1 .......................[done]
Additional rpm output:
update-alternatives: using /usr/sbin/zabbix-server-mysql to provide /usr/sbin/zabbix-server (zabbix-server) in auto mode

Create the database for Zabbix and set permissions.

linuxhelp:/home/user1 # mysql -u root -p
MariaDB [(none)]> create database zabbixdb;
MariaDB [(none)]> grant all on zabbixdb.* to 'root'@'localhost' identified by '123';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> q;

Copy the DB schemes from the below directory to the database server.

linuxhelp:/home/user1 # cd /usr/share/doc/packages/zabbix-server/mysql/
linuxhelp: # mysql -u root -p zabbixdb < schema.sql
linuxhelp: # mysql -u root -p zabbixdb < images.sql
linuxhelp: # mysql -u root -p zabbixdb < data.sql 

Now open the Zabbix server configuration file and add the following terms.

linuxhelp: # vim /etc/zabbix/zabbix-server.conf


Uncomment the following lines in the zabbix agent configuration.

linuxhelp:# vim /etc/zabbix/zabbix-agentd.conf



Again open the zabbix configuration file and make the changes as shown below.

linuxhelp:~ # vim /etc/apache2/conf.d/zabbix.conf
<IfDefine ZABBIX>
Alias /zabbix "/usr/share/zabbix/"
<Directory "/usr/share/zabbix/">
Options Indexes MultiViews
AllowOverride None
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
<IfModule !mod_authz_core.c>
# Apache 2.2
Require all granted

<DirectoryMatch "/usr/share/zabbix/(conf/|include/)>
<IfModule mod_authz_core.c>
# Apache 2.4
Require all denied
<IfModule !mod_authz_core.c>
# Order deny,allow
Require all granted
Deny from all
<IfDefine !Zabbix>
Redirect 403 /zabbix

Now open the zabbix php configuration and edit the zabbix DB details as follows,

linuxhelp:/usr/share/zabbix/conf # vim /usr/share/zabbix/conf/zabbix.conf.php.example
// Zabbix GUI configuration file
global $DB;
$DB["TYPE"]                             = 'MYSQL';
$DB["SERVER"]                        = 'localhost';
$DB["PORT"]                            = '0';
$DB["DATABASE"]                  = 'zabbixdb';
$DB["USER"]                            = 'root';
$DB["PASSWORD"]                 = '123';
// SCHEMA is relevant only for IBM_DB2 database
$DB["SCHEMA"]                   = '';
$ZBX_SERVER                     = 'localhost';
$ZBX_SERVER_PORT                = '10051';
$ZBX_SERVER_NAME                = '';

Open the php.ini file and add the configuration as shown below.

linuxhelp: # vim /etc/php5/apache2/php.ini
max_execution_time = 300
max_input_time = 300
post_max_size = 32M

Restart the Apache service and the mysql service to take effect.

linuxhelp:/usr/share/zabbix/conf # systemctl restart apache2
linuxhelp:/usr/share/zabbix/conf # systemctl restart mysql

Also restart zabbix server and agent services.

linuxhelp:/usr/share/zabbix/conf # systemctl restart zabbix-server
linuxhelp:/usr/share/zabbix/conf # systemctl restart zabbix-agentd

Once the above process is completed, open the web browser with the respective IP address.


Here you need to check the pre-request packages.


Enter your DB details and test the connection.


Configure the server details.


Check the configuration details.


To recover the download error, click on download menu and save the file into specified location as follows,





Now the problem is resolved successfully.


Login the Zabbix panel with the credentials.


Finally you can start access it through the Dashboard of Zabbix-server.


Thank you! for using Linux Help.

You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: Zabbix
user image Author :  Jackson