zabbix centos 6.4 安装

--下载地址

http://www.zabbix.com/download.php

 

--环境

centos6.4-x86-64  

zabbix 2.2 x64

 

--所需安装包

rpm -ivh unixODBC-2.2.14-11.el6.x86_64.rpm
rpm -ivh OpenIPMI-libs-2.0.16-12.el6.x86_64.rpm
rpm -ivh iksemel-1.4-20.1.x86_64.rpm
rpm -ivh fping-3.5-161.1.x86_64.rpm

--自动创建zabbix用户和组
-- zabbix-server-implementation = 2.2.13-1.el6 is needed by zabbix-server-2.2.13-1.el6.x86_64 需要如下两个包同时安装,才不报错
rpm -i zabbix-server-mysql-2.2.13-1.el6.x86_64.rpm zabbix-server-2.2.13-1.el6.x86_64.rpm


-- php-bcmath-5.3.3-3.el6_2.8.x86_64.rpm php-mbstring-5.3.3-3.el6_2.8.x86_64.rpm 下载安装后,如下两个包同时安装
rpm -i zabbix-web-mysql-2.2.13-1.el6.noarch.rpm zabbix-web-2.2.13-1.el6.noarch.rpm


--centos缺包 下载网址
http://rpm.pbone.net/

 

vi /etc/php.ini
date.timezone = Asia/Shanghai
post_max_size = 16M
max_execution_time = 300
msx_input_time = 300


vi /etc/zabbix/zabbix_server.conf 修改zabbix主配置文件(和数据库保持一致)
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
always_populate_raw_post_data = -1

 

--创建zabbix数据库及授权
service mysqld start

mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to 'zabbix'@'%' identified by '123456';

 


--初始化zabbix脚本
cd /usr/share/doc/zabbix-server-mysql-2.4.4/create/

mysql -uroot -p zabbix < schema.sql
mysql -uroot -p zabbix < images.sql
mysql -uroot -p zabbix < data.sql


--修改apache配置文件支持php.ini
vi /etc/httpd/conf/httpd.conf

修改DirectoryIndex index.html 为DirectoryIndex index.html index.php
并添加AddType application/x-httpd-php .php
最后加入一句 ServerName localhost:80

--启动apache
service httpd start

--启动zabbix
/etc/init.d/zabbix-server start
/etc/init.d/zabbix-agentd start

 

--访问zabbix
http://192.168.33.81/zabbix

 

 

--客户端安装agent   自动创建zabbix用户和组

rpm -ivh  zabbix-2.2.13-1.el6.x86_64.rpm

rpm -ivh  zabbix-agent-2.2.13-1.el6.x86_64.rpm

 

groupadd -r zabbix
useradd -g zabbix -s /sbin/nologin zabbix

/etc/init.d/zabbix-agent start

netstat -nao |grep 10050

 

--配置zabbix Server页面
Configuration -----> Hosts,修改当前主机为enable

 

--详见
http://www.cnblogs.com/rusking/p/4437774.html

 

 

 

--web界面配置

 

posted @ 2016-06-27 16:13  两年十一时  阅读(530)  评论(0编辑  收藏  举报