Linux Tools
Now Reading
How to Install Zabbix in OpenSUSE Leap
0

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.

Features

  • 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.

https://www.linuxhelp.com/how-to-install-and-configure-lamp-in-open-suse-leap/

Add the Zabbix repo file into OpenSUSE repository.

linuxhelp:/home/user1 # zypper addrepo http://download.opensuse.org/repositories/server:/monitoring/openSUSE_Leap_42.1 server_monitoring
Adding repository 'server_monitoring' ....................................[done]
Repository 'server_monitoring' successfully added
.
.
.
URI: http://download.opensuse.org/repositories/server:/monitoring/openSUSE_Leap_42.1

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;
Bye

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
DBName=zabbixdb
DBUser=root

DBPassword=123

Uncomment the following lines in the zabbix agent configuration.

linuxhelp:# vim /etc/zabbix/zabbix-agentd.conf
Server=127.0.0.1

ServerActive=127.0.0.1

Hostname=linuxhelp

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

linuxhelp:~ # vim /etc/apache2/conf.d/zabbix.conf

Alias /zabbix "/usr/share/zabbix/"
<Directory "/usr/share/zabbix/">
Options Indexes MultiViews
AllowOverride None

# Apache 2.4
Require all granted


# Apache 2.2
Require all granted


<DirectoryMatch "/usr/share/zabbix/(conf/|include/)>

# Apache 2.4
Require all denied
# Order deny,allow
Require all granted
Deny from all

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
<?php
// 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                = '';
$IMAGE_FORMAT_DEFAULT   = IMAGE_FORMAT_PNG;
?>

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.

1

Here you need to check the pre-request packages.

2

Enter your DB details and test the connection.

3

Configure the server details.

4

Check the configuration details.

5

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

6

7

8

Now the problem is resolved successfully.

9

Login the Zabbix panel with the credentials.

10

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

11

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 www.linuxhelp.com

Be the first to comment, we value your suggestions. For further queries please comment below.

Leave a Response