From ArchWiki
Revision as of 21:42, 12 September 2013 by Onny (talk | contribs) (Starting)
Jump to: navigation, search

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary end Zabbix is a full-featured monitoring solution for larger networks. It

Server Installation

If you want to use the Zabbix server with MariaDB, install zabbix-server-mysqlAUR from the AUR. For PostgreSQL as database backend, you should use zabbix-serverAUR. You may edit the PKGBUILDs when you plan to use Nginx as web-server, since by default they have a apache and php-apache dependency.


Symlink the Zabbix web application directory to your http document root, e.g.:

ln -s /usr/share/webapps/zabbix /var/www

Make sure to adjust following variables to these minimal values in your php.ini:

post_max_size = 16M
max_execution_time = 300
max_input_time = 300
date.timezone = "UTC"

In this example, we create a MariaDB database called zabbix for the user zabbix identified by the password test and then import the database templates. This connection will be later used by the Zabbix server and web application:

mysql -u root -p -e "create database zabbix"
mysql -u root -p -e "grant all on zabbix.* to zabbix@localhost identified by 'test'"
gunzip /usr/share/zabbix-server-mysql/*.sql.gz
mysql -u zabbix -p zabbix < /usr/share/zabbix-server-mysql/schema.sql
mysql -u zabbix -p zabbix < /usr/share/zabbix-server-mysql/images.sql
mysql -u zabbix -p zabbix < /usr/share/zabbix-server-mysql/data.sql


To enable the and start server process, run:

systemctl enable zabbix-server
systemctl start zabbix-server

Finally you can access Zabbix via your local web server, e.g.: , finish the installation wizard and access the frontend the first time. The default username is Admin and password zabbix.

See appendix for a link to the official documentation, which explains all further steps in using it.

Agent (Client) Installation

Currently, the server package already includes zabbix-agentAUR, so you don't have to install this package on your monitoring server. However, for monitoring targets, the client part is more minimal, standalone and easy to deploy, just install zabbix-agentAUR.


Simply edit the zabbix_agentd.conf and replace the server variable with the IP of your monitoring server. Only servers from this/these IP will be allowed to access the agent.



To enable and start the agent, run:

systemctl enable zabbix-agentd
systemctl start zabbix-agentd

See also