額滴神啊~~~通過兩個晚上的深思熟慮,RHEL6.6搭建zabbix2.4監控系統終於搭建好了!現將搭建好的zabbix記錄下來。mysql
1. 安裝fping、iksemel、web
# rpm -ivh fping-3.9-1.el6.rf.x86_64.rpmsql
# rpm -ivh iksemel-1.4-42.1.src.rpm數據庫
2. 安裝libcurl源、net-snmp源curl
# yum installlibcurl -yide
# yum installnet-snmp –yurl
3. 安裝zabbix所須要的組件和包spa
# rpm –ivh zabbix-release-2.4-1.el6.noarch.rpmrest
# yum installzabbix-server-mysql zabbix-web-mysql –yorm
# yum installzabbix-agent -y
4. 啓動mysql數據庫
# service mysqldstatus
# service mysqldstart
5. 配置mysql數據庫文件
# mysql -u root
mysql> createdatabase zabbix character set utf8 collate utf8_bin;
mysql> grantall privileges on zabbix.* to zabbix@localhost identified by ‘zabbix’;
mysql> exit;
# mysql -u rootzabbix < /usr/share/doc/zabbix-server-mysql-2.4.6/create/schema.sql
# mysql -u rootzabbix < /usr/share/doc/zabbix-server-mysql-2.4.6/create/p_w_picpaths.sql
# mysql -u rootzabbix < /usr/share/doc/zabbix-server-mysql-2.4.6/create/data.sql
6. 配置zabbix
# vi /etc/zabbix/zabbix_server.conf
# vi/etc/httpd/conf.d/zabbix.conf
7. 啓動zabbix server
# service httpdrestart
# chkconfighttpd on
# serviceiptables stop
# chkconfigiptables off
# servicezabbix-server start
# chkconfigzabbix-server on
# servicezabbix-agent start
# chkconfigzabbix-agent on
(具體步驟請看CentOS6.6安裝zabbix2.4那篇文章!)