How to set up a Zabbix server

I use Nagios, and am very pleased with it, but new things can surprise you!

Where to find it : – has newer versions and good documentation, I used this site.

Zabbix has a bunch of components :
zabbix — Base package; Contains zabbix_sender and zabbix_get
zabbix-agent — Contains zabbix_agent, zabbix_agentd
zabbix-server-mysql — A server implementation
zabbix-web-mysql — Frontend fitting a server implementation
zabbix-proxy-mysql — A proxy implementation
I have numbered only the components that use mysql DB (there are components for pgsql and sqlite3). Of course you have to have a MySQL installation.

Installation (CentOS 6U5, see link) :
# rpm -ivh
# yum install zabbix-server-mysql zabbix-web-mysql
# service mysqld start
(Afterwards set it up to always start after restart)
# mysql -uroot
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by ‘zabbix’;
mysql> exit
(Afterwards set up a root pass for MySQL, and delete empty users form DB)
# cd /usr/share/doc/zabbix-server-mysql-XXX/create
# mysql -uroot zabbix < schema.sql # mysql -uroot zabbix < images.sql # mysql -uroot zabbix < data.sql # vi /etc/zabbix/zabbix_server.conf DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=zabbix # service zabbix-server start Editing PHP configuration for Zabbix frontend in /etc/httpd/conf.d/zabbix.conf. Some PHP settings are already configured : php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M php_value max_input_time 300 php_value date.timezone Europe/Belgrade # service httpd restart (Afterwards set it up to always start after restart) Further configuration is done through web : (username/password is Admin/zabbix).

This entry was posted in Linux and tagged , . Bookmark the permalink.

Comments are closed.