zabbix 编译安装
2015-03-27 10:10
344 查看
#install lamp
yum install gcc glibc glibc-common cairo pango zlib zlib-devel freetype freetype-devel gd gd-devel -y
yum install mysql* httpd* php* --skip-broken -y
#add user for zabbix
groupadd zabbix
useradd -g zabbix zabbix
#download and install
wget http://iweb.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.8/zabbix-2.2.8.tar.gz tar zxvf zabbix-2.2.8.tar.gz
cd zabbix-2.2.8
./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 #zabbix_server
#./configure --enable-agent #zabbix_agent
make && make install
mysql -e "create database zabbix character set utf8 collate utf8_bin;"
mysql -e "grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'zabbix';"
mysql -e "flush privileges;"
cd database/mysql/
mysql zabbix <schema.sql
mysql zabbix < images.sql
mysql zabbix < data.sql
#http diretory
mkdir /usr/local/apache2/htdocs/zabbix #http diretory /var/www/html
cd frontends/php
cp -a . /usr/local/apache2/htdocs/zabbix #http diretory /var/www/html
#zabbix_server configure
vim /usr/local/etc/zabbix_server.conf
DBUser=zabbix
DBPassword=zabbix
DBSocket=/tmp/mysql.sock
#zabbix_agent configure
vim /usr/local/etc/zabbix_agentd.conf
Server=127.0.0.1,192.168.199.118
ServerActive=127.0.0.1,192.168.199.118
Hostname=192.168.199.119
#service start
zabbix_server
zabbix_agentd
#service stop
killall -9 zabbix_server
killall -9 zabbix_agentd
yum install gcc glibc glibc-common cairo pango zlib zlib-devel freetype freetype-devel gd gd-devel -y
yum install mysql* httpd* php* --skip-broken -y
#add user for zabbix
groupadd zabbix
useradd -g zabbix zabbix
#download and install
wget http://iweb.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.8/zabbix-2.2.8.tar.gz tar zxvf zabbix-2.2.8.tar.gz
cd zabbix-2.2.8
./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 #zabbix_server
#./configure --enable-agent #zabbix_agent
make && make install
mysql -e "create database zabbix character set utf8 collate utf8_bin;"
mysql -e "grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'zabbix';"
mysql -e "flush privileges;"
cd database/mysql/
mysql zabbix <schema.sql
mysql zabbix < images.sql
mysql zabbix < data.sql
#http diretory
mkdir /usr/local/apache2/htdocs/zabbix #http diretory /var/www/html
cd frontends/php
cp -a . /usr/local/apache2/htdocs/zabbix #http diretory /var/www/html
#zabbix_server configure
vim /usr/local/etc/zabbix_server.conf
DBUser=zabbix
DBPassword=zabbix
DBSocket=/tmp/mysql.sock
#zabbix_agent configure
vim /usr/local/etc/zabbix_agentd.conf
Server=127.0.0.1,192.168.199.118
ServerActive=127.0.0.1,192.168.199.118
Hostname=192.168.199.119
#service start
zabbix_server
zabbix_agentd
#service stop
killall -9 zabbix_server
killall -9 zabbix_agentd
相关文章推荐
- zabbix编译环境安装
- zabbix之2安装编译/基本功能实现
- Zabbix 编译安装 (zabbix-2.4.3 server_install )
- Zabbix 源码编译安装
- 安装zabbix 编译lnmp环境
- zabbix 2.03 源码编译及安装配置
- 编译安装zabbix3.0 并且与mysql分离
- zabbix 编译安装
- zabbix编译安装
- CentOS 6.4编译安装和部署Zabbix 2.0版本监控(中文)
- 编译安装监控工具zabbix-2.2.6
- zabbix分布式监控环境完全编译安装部署
- zabbix2.2入门教程之编译安装(一)
- CentOS 7 x86_64 编译安装zabbix-2.4.2出错 MySQL library not found
- 编译安装zabbix 3.0及分开部署配置详解
- Zabbix(一)之简介和源码编译安装
- zabbix 编译安装
- zabbix安装-----linux下安装和配置mysql(编译安装)
- 《未测试》如何使用自己已经编译过的lamp安装cacti nagios zabbix
- 编译zabbix3.0安装报错index.php 29 line error