额滴神啊~~~经过两个晚上的深思熟虑,RHEL6.6搭建zabbix2.4监控系统终于搭建好了!现将搭建好的zabbix记录下来。
- 1. 安装fping、iksemel、
# rpm -ivh fping-3.9-1.el6.rf.x86_64.rpm
# rpm -ivh iksemel-1.4-42.1.src.rpm
- 2. 安装libcurl源、net-snmp源
# yum installlibcurl -y
# yum installnet-snmp –y
- 3. 安装zabbix所需要的组件和包
# rpm –ivh zabbix-release-2.4-1.el6.noarch.rpm
# yum installzabbix-server-mysql zabbix-web-mysql –y
# 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 [email protected] 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/images.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那篇文章!)