Install zabbix_server:
# Yum install mysql-Server httpd PHP
# Yum install mysql-devel GCC net-snmp-devel curl-devel Perl-dbi php-Gd PHP-mysql PHP-bcmath PHP-mbstring PHP-XML
Downloads zabbix-2.2.5.tar.gz
# Tar-zxvf zabbix-2.2.5.tar.gz
# Groupadd zabbix
# Useradd-G zabbix-S/sbin/nologin zabbix
#/Etc/init. d/mysqld start # Initialization is executed by default at the first startup.
# Mysqladmin-u Root Password 'mysqlpw '# Set the Database Password
# Create database zabbix Character Set utf8;
# Zabbix-2.2.5/database/MySQL
# MySQL zabbix <schema. SQL
# MySQL zabbix <images. SQL
# MySQL zabbix <data. SQL
#./Configure -- With-mysql -- With-net-snmp -- With-libcurl -- enable-server -- enable-agent -- enable-proxy -- prefix =/usr/local/zabbix
# Make install
# Vi/etc/services
Zabbix-Agent 10050/tcp # zabbix agent
Zabbix-Agent 10050/udp # zabbix agent
Zabbix-Trapper 10051/tcp # zabbix trapper
Zabbix-Trapper 10051/udp # zabbix trapper
# Vi/usr/local/zabbix/etc/zabbix_server.conf
#/Etc/init. d/zabbix_server start
# SELinux = disabled
Or # service iptables stop
# Ln-S/etc/init. d/zabbix_server/usr/bin/zabbix_server
Install zabbix_agent
# Groupadd zabbix
# Useradd-G zabbix-S/sbin/nologin zabbix
# Tar-XF zabbix-2.2.5.tar.gz-C/usr/local/src/
# Cd/usr/local/src/zabbix-2.2.5
#./Configure -- prefix =/usr/local/zabbix -- enable-agent
# Make install
# Ln-S/etc/init. d/zabbix-agent/usr/bin/zabbix-agent
VI/usr/local/zabbix/etc/zabbix_agentd.conf
Server = 192.168.1.21
Serveractive = 192.168.1.21
Hostname = zabbix-client01
# Zabbix-Agent start
Or #/etc/init. d/zabbix_agentd start
(Cannot connect to server: 10051: [113] No route to host)
-- Ping OK,
SELinux disabled.
# Service iptables stop
# Setenforce 0