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 ##第一次启动默认执行初始化
# mysqladmin -u root password 'mysqlpw' #设置数据库密码
# create database zabbix character set utf8;
# cd /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