Difference between revisions of "Zabbix"
(→Configuration) |
(→Configuration) |
||
Line 32: | Line 32: | ||
Currently, the server package already includes {{aur|zabbix-agent}}, 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 {{aur|zabbix-agent}}. | Currently, the server package already includes {{aur|zabbix-agent}}, 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 {{aur|zabbix-agent}}. | ||
===Configuration=== | ===Configuration=== | ||
− | Simply edit the zabbix_agentd.conf and replace the server variable with the IP of your monitoring server. | + | 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. |
{{hc|/etc/zabbix/zabbix_agentd.conf| | {{hc|/etc/zabbix/zabbix_agentd.conf| | ||
<nowiki>Server=127.0.0.1 | <nowiki>Server=127.0.0.1 |
Revision as of 21:19, 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
Contents
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.
Configuration
ln -s /usr/share/webapps/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
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.
Configuration
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.
/etc/zabbix/zabbix_agentd.conf
Server=127.0.0.1 ServerActive=
To enable and start the agent, run:
systemctl enable zabbix-agentd systemctl start zabbix-agentd