Zabbix requires Apache-Mysql-PHP stack to be installed in order to run. You can follow this previous post.
Let’s download and install Zabbix
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
We have to edit timezone in /etc/httpd/conf.d/zabbix
php_value date.timezone Europe/Athens service httpd restart
Create a database or Zabbix
mysql -u root -p create database zabbix character set utf8; grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'password'; flush privileges; exit
mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql-2.4.3/create/schema.sql mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql-2.4.3/create/images.sql mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql-2.4.3/create/data.sql
Edit /etc/zabbix/zabbix_server.conf to set up zabbix database credentials
Start the zabbix-server process
service zabbix-server start systemctl enable zabbix-server.service
Finally add the necessary firewall rules for snmp and zabbix agent
firewall-cmd --permanent --add-port=161/udp firewall-cmd --permanent --add-port=10051/tcp firewall-cmd --reload
Windows agent
Download from:
http://www.zabbix.com/download.php
Unpack and copy to C:\
edit conf/zabbix_agentd.win.conf and add serverip under ‘Passive’ mode
Rename file to zabbix_agentd.conf
Run from command propmt in C:\install_dir –> zabbix_agentd.exe –install