Zabbix架构:C/S
Zabbix官方 :
下载地址 : download.php
文档 : documentation.php
Lnmp 安装:
-
yum install mysql mysql-devel mysql-libs
-
yum install php php-devel php-gd
-
-
nginx install wiki:
-
-
http://nginx.org/en/docs/install.html
Lnmp需要修改以下参数:
-
vim /etc/php.ini
-
date.timezone = Asia/Shanghai
-
post_max_size = 32M
-
upload_max_filesize = 16M
-
max_execution_time = 600
-
max_input_time = 600
-
memory_limit = 256M
导入数据库:
mysql -uzabbix -pzabbix -hlocalhost zabbix < database/mysql/schema.sql
mysql -uzabbix -pzabbix -hlocalhost zabbix < database/mysql/images.sql
mysql -uzabbix -pzabbix -hlocalhost zabbix < database/mysql/data.sql
此文章主要针对server端安装:
-
install:
-
wget -qSc http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.0/zabbix-2.2.0.tar.gz
-
yum install *net-snmp* libpng libpng-devel libjpeg libjpeg-devel gd gd-devel libtiff libtiff-devel -y
-
tar xf zabbix-2.2.0.tar.gz
-
cd zabbix-*
-
./configure --prefix=/usr/local/zabbix --enable-server --enable-proxy --enable-agent --with- mysql=/usr/local/webserver/mysql/bin/mysql_config --with-net-snmp --with-libcurl
-
#开启server端,agent端,proxy代理,snmp功能
-
make ;make install
-
echo "zabbix-agent 10050/tcp #Zabbix Agent" >> /etc/services
-
echo "zabbix-agent 10050/udp #Zabbix Agetn" >> /etc/services
-
echo "zabbix-trapper 10051/tcp #Zabbix Trapper" >> /etc/services
-
echo "zabbix-trapper 10051/udp #Zabbix Trapper" >> /etc/services
-
mkdir /etc/zabbix
-
cp misc/conf/zabbix_server.conf /etc/zabbix
-
cp misc/conf/zabbix_proxy.conf /etc/zabbix
-
cp misc/conf/zabbix_agent.conf /etc/zabbix
-
cp misc/conf/zabbix_agentd.conf /etc/zabbix
-
修改 vim zabbix_server.conf
-
95 DBUser=zabbix
-
104 DBPassword=zabbix
-
76 DBHost=192.168.10.156
-
赋予777权限才能顺利完成安装
-
chmod -R 777 /$domroot/zabbix
阅读(3299) | 评论(0) | 转发(0) |