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 :
www.zabbix.org
www.zabbix.com – 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 http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
# 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 : http://127.0.0.1/zabbix (username/password is Admin/zabbix).

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

Comments are closed.