Difference between revisions of "Zabbix"

From ArchWiki
Jump to: navigation, search
Line 18: Line 18:
 
===Configuration===
 
===Configuration===
 
{{bc|ln -s /usr/share/zabbix /var/www}}
 
{{bc|ln -s /usr/share/zabbix /var/www}}
 +
{{bc|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:
 
To enable the and start server process, run:
 
{{bc|systemctl enable zabbix-server
 
{{bc|systemctl enable zabbix-server

Revision as of 19:20, 12 September 2013

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.

Configuration

ln -s /usr/share/zabbix /var/www
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

Agent (Client) Installation

The client part is more minimal, standalone and easy to deploy, just install zabbix-agentAUR. It doesn't depend on the server package.

Configuration

To enable and start the agent, run:

systemctl enable zabbix-agentd
systemctl start zabbix-agentd