主机环境: rhel6.5 selinux and iptables disabled
ip:172.25.88.2
1、安装zabbix监控所需软件
yum install -y
zabbix-2.4.5-1.el6.x86_64.rpm
zabbix-server-2.4.5-1.el6.x86_64.rpm zabbix-server-mysql-2.4.5-1.el6.x86_64.rpm #zabbix服务器
zabbix-web-2.4.5-1.el6.noarch.rpm #zabbix前端界面
zabbix-web-mysql-2.4.5-1.el6.noarch.rpm #zabbix数据库
zabbix-agent-2.4.5-1.el6.x86_64.rpm
fping-2.4b2-16.el6.x86_64.rpm
iksemel-1.4-2.el6.x86_64.rpm
iksemel-utils-1.4-2.el6.x86_64.rpm
php-mbstring-5.3.3-26.el6.x86_64.rpm
php-bcmath-5.3.3-26.el6.x86_64.rpm zabbix-java-gateway-2.4.5-1.el6.x86_64.rpm
2、配置 mysql 数据库
/etc/init.d/mysqld start #启动mysql服务
Mysql -p
#创建zabbix数据库,给zabbix用户授权
mysql> create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'Hello-224';
cd /usr/share/doc/zabbix-server-mysql-2.4.5/create
#导入数据库信息
mysql -uzabbix -p zabbix < images.sql
mysql -uzabbix -p zabbix < data.sql
mysql -uzabbix -p zabbix < schema.sql
3、配置 zabbix server
cd /etc/zabbix/
vim zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=Hello-224
4、登陆查看导入的zabbix数据库信息
5、配置 php
cd /etc/httpd/conf.d/
vim zabbix.conf
php_value date.timezone Asia/Shanghai #更改时区
6、启动 zabbix-server、zabbix-agent、httpd,关闭火墙
/etc/init.d/httpd start
/etc/init.d/zabbix-server start
/etc/init.d/zabbix-agent start
7、登陆 zabbix web
http://172.25.88./zabbix 按照提示完成安装并登陆: