这是在红帽企业版5.7上进行的zabbix-server安装,redhat5和redhat6上面安装zabbix-server有一些不一样的地方,下面是安装记录,安装的版本是zabbix-2.2.0。

    1、将相关rpm包上传到zabbix server服务器

    2、rpm方式安装以下包:

    rpm -ivh zabbix-2.2.0-2.el5.x86_64.rpm 

    rpm -ivh zabbix-agent-2.2.0-2.el5.x86_64.rpm 

    rpm -ivh zabbix-get-2.2.0-2.el5.x86_64.rpm  

    rpm -ivh zabbix-sender-2.2.0-2.el5.x86_64.rpm

    rpm -ivh zabbix-release-2.2-1.el5.noarch.rpm 

    3、安装依赖包:

    yum install -y fping libssh2-devel openldap openldap-devel php

    4、安装mysql相关软件包:

    yum -y install  mysql mysql-server \

    httpd-manual mod_ssl mod_perl mod_auth_mysql  mysql-connector-odbc mysql-devel libdbi-dbd-mysql \

     curl-devel unixODBC-devel OpenIPMI-devel java-devel

    5、安装server-mysql包:

    rpm -ivh zabbix-server-mysql-2.2.0-2.el5.x86_64.rpm

    6、卸载php老版本相关包:

    rpm -e --nodeps php-ldap-5.1.6-27.el5_5.3 php-common-5.1.6-44.el5_10 php-cli-5.1.6-44.el5_10

    7、安装php相关软件包:

    yum install -y php53  php53-bcmath php53-gd php53-mbstring  php53-xml 

    8、安装web-mysql软件包

    yum localinstall zabbix-web-mysql-2.2.0-2.el5.x86_64.rpm

    9、安装数据库

    mysql -uzabbix -pzabbix zabbix < /usr/share/doc/zabbix-server-mysql-2.2.0/create/schema.sql

    mysql -uzabbix -pzabbix zabbix < /usr/share/doc/zabbix-server-mysql-2.2.0/create/p_w_picpaths.sql

    mysql -uzabbix -pzabbix zabbix < /usr/share/doc/zabbix-server-mysql-2.2.0/create/data.sql

    10、web配置,访问  http://serverip(zabbix server的IP地址)/zabbix/

    访问web,按照提示进行配置,最后一步注意下载配置文件 /etc/zabbix/web/zabbix.conf.php

    11、中文乱码问题,修改字符集

    export ZABBIX_WEB=/usr/share/zabbix

    wget https://www.zabbix.org/pootle/export/Zabbix-2.0/zh_CN/LC_MESSAGES/frontend.po -O ${ZABBIX_WEB}/locale/zh_CN/LC_MESSAGES/frontend.po