码迷,mamicode.com
首页 > 其他好文 > 详细

install zabbix-2.2.5 on CentOS 6.5 x86_64

时间:2014-07-28 03:07:20      阅读:286      评论:0      收藏:0      [点我收藏+]

标签:zabbix

install zabbix_server:


# yum install mysql-server httpd php

# yum install mysql-devel gcc net-snmp-devel curl-devel perl-DBI php-gd php-mysql php-bcmath php-mbstring php-xml 


downloads zabbix-2.2.5.tar.gz

# tar -zxvf zabbix-2.2.5.tar.gz


# groupadd  zabbix 

# useradd  -g zabbix -s /sbin/nologin  zabbix


# /etc/init.d/mysqld start ##第一次启动默认执行初始化

# mysqladmin  -u root password ‘mysqlpw‘ #设置数据库密码


# create database zabbix character set utf8;   


# cd /zabbix-2.2.5/database/mysql 

# mysql zabbix < schema.sql

# mysql zabbix < images.sql

# mysql zabbix < data.sql


# ./configure --with-mysql --with-net-snmp --with-libcurl --enable-server --enable-agent --enable-proxy --prefix=/usr/local/zabbix


# make install


# vi /etc/services 


zabbix-agent    10050/tcp                       # Zabbix Agent

zabbix-agent    10050/udp                      # Zabbix Agent

zabbix-trapper  10051/tcp                       # Zabbix Trapper

zabbix-trapper  10051/udp                      # Zabbix Trapper



# vi /usr/local/zabbix/etc/zabbix_server.conf


# /etc/init.d/zabbix_server start


# selinux = disabled 

or # service iptables stop


# ln -s /etc/init.d/zabbix_server /usr/bin/zabbix_server





install zabbix_agent


# groupadd  zabbix 

# useradd  -g zabbix -s /sbin/nologin  zabbix


# tar -xf zabbix-2.2.5.tar.gz -C /usr/local/src/


# cd /usr/local/src/zabbix-2.2.5


# ./configure --prefix=/usr/local/zabbix --enable-agent


# make install


# ln -s /etc/init.d/zabbix-agent /usr/bin/zabbix-agent



vi /usr/local/zabbix/etc/zabbix_agentd.conf


Server=192.168.1.21


ServerActive=192.168.1.21


Hostname=zabbix-client01



# zabbix-agent start 

 or # /etc/init.d/zabbix_agentd start



(cannot connect to server:10051: [113] No route to host)

-- ping ok, 

selinux disabled.

# service iptables stop

# setenforce 0



install zabbix-2.2.5 on CentOS 6.5 x86_64,布布扣,bubuko.com

install zabbix-2.2.5 on CentOS 6.5 x86_64

标签:zabbix

原文地址:http://jasonyu37.blog.51cto.com/8877469/1530722

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!