Professional Documents
Culture Documents
org
Contents
1 Adding required repositories
2 Server Install
2.1 Database
2.1.1 MySQL
2.1.2 PostgreSQL
2.2 Zabbix Server
3 Front-end Install
4 Java Gateway Install
5 Agent Install
5.1 Linux
5.2 Windows
zypper update
Server Install
Depending on your choice of database backend you should install corresponding zabbix package
for mysql
for postgresql
or just for testing purposes sqlite backend is available as package too (not recommended)
https://www.zabbix.org/wiki/Install_on_openSUSE_/_SLES 1/5
19/9/2017 Install on openSUSE / SLES - Zabbix.org
Database
You can install the database on the same server, or on another server.
MySQL
Install mysql server and client (on recent openSUSE versions this installs MariaDB, but that should not pose any problems as it is an in-
place replacement of mysql)
rcmysql start
mysql_secure_installation
mysql -u root -p
insserv mysql
PostgreSQL
rcpostgresql start
su - postgres
psql
https://www.zabbix.org/wiki/Install_on_openSUSE_/_SLES 2/5
19/9/2017 Install on openSUSE / SLES - Zabbix.org
In the PostgreSQL console
replace 'ohmybestpasswordevAr' by the actual password you want for the zabbix database user
zabbix=> \i /usr/share/doc/packages/zabbix-server/postgresql/schema.sql
zabbix=> \i /usr/share/doc/packages/zabbix-server/postgresql/images.sql
zabbix=> \i /usr/share/doc/packages/zabbix-server/postgresql/data.sql
zabbix=> \q
insserv postgresql
Zabbix Server
Edit /etc/zabbix/zabbix-server.conf to set up zabbix database users' password
Start the zabbix-server process
rczabbix-server start
insserv zabbix-server
Front-end Install
Install the zabbix-phpfrontend package:
Also install apache webserver with PHP5 support and a few additional PHP5 libraries required by Zabbix front-end:
Edit /etc/apache2/conf.d/zabbix.conf and add (change the date.timezone to your own timezone)
https://www.zabbix.org/wiki/Install_on_openSUSE_/_SLES 3/5
19/9/2017 Install on openSUSE / SLES - Zabbix.org
php_value max_input_time 300
php_value date.timezone Europe/Brussels
a2enmod php5
Enable the Zabbix front-end website by setting the 'ZABBIX' flag in Apache:
a2enflag ZABBIX
Edit the front-end configuration file /usr/share/zabbix/conf/zabbix.conf.php to reflect you setup (database type, host, user, password and
zabbix server host) or follow steps of automated setup
Make sure apache is started on server startup:
insserv apache2
rcapache2 start
to install it run:
Specify the address of the gateway in the zabbix server config (/etc/zabbix/zabbix-server.conf or zabbix-proxy.conf):
JavaGateway=10.150.164.214
StartJavaPollers=5
insserv zabbix-java-gateway
rczabbix-java-gateway start
Agent Install
Linux
https://www.zabbix.org/wiki/Install_on_openSUSE_/_SLES 4/5
19/9/2017 Install on openSUSE / SLES - Zabbix.org
For openSUSE/SLES Install the zabbix-agent from: http://software.opensuse.org/download/package?
project=server:monitoring&package=zabbix-agent
insserv zabbix-agent
Edit /etc/zabbix/zabbix_agentd.conf and point the agent to the zabbix server by changing the Server and ServerActive settings.
Start the agent (service zabbix-agent start or for SUSE: rczabbix-agentd start)
Windows
See https://www.zabbix.com/documentation/2.0/manual/appendix/install/windows_agent
https://www.zabbix.org/wiki/Install_on_openSUSE_/_SLES 5/5