zabbix2.2安装

下载地址

https://pan.baidu.com/s/1mDCEqiH7r2UcbE618I53ag 提取码:H388

HTTP安装

rpm -ivh httpd-2.2.15-26.el6.x86_64.rpm

PHP安装

rpm -ivh php-common-5.3.3-27.el6_5.2.x86_64.rpm

rpm -ivh php-cli-5.3.3-27.el6_5.2.x86_64.rpm

rpm -ivh php-5.3.3-27.el6_5.2.x86_64.rpm

rpm -ivh php-bcmath-5.3.3-27.el6_5.2.x86_64.rpm

rpm -ivh php-mbstring-5.3.3-27.el6_5.2.x86_64.rpm

rpm -ivh php-xml-5.3.3-27.el6_5.2.x86_64.rpm

rpm -ivh php-pdo-5.3.3-27.el6_5.2.x86_64.rpm

rpm -ivh php-mysql-5.3.3-27.el6_5.2.x86_64.rpm 

rpm -ivh php-gd-5.3.3-27.el6_5.2.x86_64.rpm

zabbix安装(agent端只需安装前四个)

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

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

rpm -ivh zabbix-sender-2.2.9-1.el6.x86_64.rpm

rpm -ivh zabbix-get-2.2.9-1.el6.x86_64.rpm

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

rpm -ivh zabbix-server-2.2.9-1.el6.x86_64.rpm zabbix-server-mysql-2.2.9-1.el6.x86_64.rpm (同时安装)

rpm -ivh zabbix-web-2.2.9-1.el6.noarch.rpm  zabbix-web-mysql-2.2.9-1.el6.noarch.rpm (同时安装)

其他依赖

缺什么装什么

rpm -ivh fping-2.4-1.b2.3.el6.rf.x86_64.rpm

rpm -ivh libiksemel3-1.4-2_2.el6.x86_64.rpm

rpm -ivh libmysqlclient16-5.1.69-1.w6.x86_64.rpm

rpm -ivh iksemel-1.4-2_2.el6.x86_64.rpm

rpm -ivh unixODBC-2.2.14-12.el6_3.x86_64.rpm

rpm -ivh OpenIPMI-libs-2.0.16-14.el6.x86_64.rpm

rpm -ivh libXpm-3.5.10-2.el6.x86_64.rpm

rpm -ivh openssl-1.0.1e-57.el6.x86_64.rpm

rpm -ivh net-snmp-5.5-49.el6_5.3.x86_64.rpm

rpm -ivh libsensors4-32bit-3.5.0-lp151.4.3.1.x86_64.rpm

创建数据库

# mysql -uroot -p

password

mysql> create database zabbix character set utf8 collate utf8_bin;

mysql> grant all privileges on zabbix.* to zabbix@% identified by 'password';

mysql> flush privileges;

mysql> quit;

导入SQL

mysql -uroot -p -Dzabbix < /usr/share/doc/zabbix-server-mysql-2.2.9/create/schema.sql

mysql -uroot -p -Dzabbix < /usr/share/doc/zabbix-server-mysql-2.2.9/create/images.sql

mysql -uroot -p -Dzabbix < /usr/share/doc/zabbix-server-mysql-2.2.9/create/data.sql

修改配置文件

vi /etc/httpd/conf.d/zabbix.conf

php_value date.timezone Asia/Shanghai

vi /etc/zabbix/zabbix_server.conf

DBPassword=123456

vi /etc/zabbix/zabbix_agentd.conf

Server=192.168.56.103

ServerActive=192.168.56.103

日志

vi /var/log/zabbix/zabbix_server.log

vi /var/log/zabbix/zabbix_agentd.log

测试

zabbix_get -s 192.168.56.102 -k system.cpu.switches

你可能感兴趣的:(zabbix2.2安装)