阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

快速编译安装Zabbix 3.2监控服务端

195次阅读
没有评论

共计 8708 个字符,预计需要花费 22 分钟才能阅读完成。

注:本文主要适用于 Zabbix 的升级,并不是全新安装

1、下载对应的软件包
1 wget https://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.2.6/zabbix-3.2.6.tar.gz

2、解压操作

tar xf zabbix-3.2.6.tar.gz

3、创建用户
groupadd zabbix
useradd -g zabbix zabbix

4、创建 zabbix 数据库

因为主要是升级,数据库已经建好了。

5、编译源文件
cd zabbix-3.2.6
 
./configure \
–prefix=/usr/local/zabbix \
–sysconfdir=/etc/zabbix \
–enable-server \
–enable-agent \
–with-mysql \
–with-net-snmp \
–with-libcurl
 
make
make install

6、编辑配置文件

    基本没用什么需要修改的,配置好数据库账号密码信息即可。
/etc/zabbix/zabbix_server.conf

7、启动服务
service zabbix_server start

8、升级监测
    升级过程中查看一下服务端的日志,看看升级过程中是否有什么异常。
 16339:20170629:133011.747 Starting Zabbix Server. Zabbix 3.2.6 (revision 67849).
 16339:20170629:133011.747 ****** Enabled features ******
 16339:20170629:133011.747 SNMP monitoring:          YES
 16339:20170629:133011.747 IPMI monitoring:            NO
 16339:20170629:133011.747 Web monitoring:            YES
 16339:20170629:133011.747 VMware monitoring:          NO
 16339:20170629:133011.747 SMTP authentication:        NO
 16339:20170629:133011.747 Jabber notifications:      NO
 16339:20170629:133011.747 Ez Texting notifications:  YES
 16339:20170629:133011.747 ODBC:                      NO
 16339:20170629:133011.748 SSH2 support:              NO
 16339:20170629:133011.748 IPv6 support:              NO
 16339:20170629:133011.748 TLS support:                NO
 16339:20170629:133011.748 ******************************
 16339:20170629:133011.748 using configuration file: /etc/zabbix/zabbix_server.conf
 16339:20170629:133011.758 current database version (mandatory/optional): 02040000/02040000
 16339:20170629:133011.758 required mandatory version: 03020000
 16339:20170629:133011.758 starting automatic database upgrade
 16339:20170629:133011.814 completed 0% of database upgrade
 16339:20170629:133011.843 completed 1% of database upgrade
 16339:20170629:133012.276 completed 2% of database upgrade
 16339:20170629:133012.979 completed 3% of database upgrade
 16339:20170629:133013.904 completed 4% of database upgrade
 16339:20170629:133014.598 completed 5% of database upgrade
 16339:20170629:133014.980 completed 6% of database upgrade
 16339:20170629:133015.054 completed 7% of database upgrade
 16339:20170629:133015.090 completed 8% of database upgrade
 16339:20170629:133015.571 completed 9% of database upgrade
 16339:20170629:133015.805 completed 10% of database upgrade
 16339:20170629:133016.266 completed 11% of database upgrade
 16339:20170629:133016.433 completed 12% of database upgrade
 16339:20170629:133016.898 completed 13% of database upgrade
 16339:20170629:133017.403 completed 14% of database upgrade
 16339:20170629:133017.739 completed 15% of database upgrade
 16339:20170629:133018.229 completed 16% of database upgrade
 16339:20170629:133018.579 completed 17% of database upgrade
 16339:20170629:133019.034 completed 18% of database upgrade
 16339:20170629:133019.510 completed 19% of database upgrade
 16339:20170629:133019.801 completed 20% of database upgrade
 16339:20170629:133020.342 completed 21% of database upgrade
 16339:20170629:133020.649 completed 22% of database upgrade
 16339:20170629:133020.714 completed 23% of database upgrade
 16339:20170629:133020.795 completed 24% of database upgrade
 16339:20170629:133020.881 completed 25% of database upgrade
 16339:20170629:133021.171 completed 26% of database upgrade
 16339:20170629:133021.531 completed 27% of database upgrade
 16339:20170629:133022.301 completed 28% of database upgrade
 16339:20170629:133023.003 completed 29% of database upgrade
 16339:20170629:133023.336 completed 30% of database upgrade
 16339:20170629:133023.818 completed 31% of database upgrade
 16339:20170629:133023.989 completed 32% of database upgrade
 16339:20170629:133024.229 completed 33% of database upgrade
 16339:20170629:133024.529 completed 34% of database upgrade
 16339:20170629:133024.852 completed 35% of database upgrade
 16339:20170629:133025.490 completed 36% of database upgrade
 16339:20170629:133025.809 completed 37% of database upgrade
 16339:20170629:133026.246 completed 38% of database upgrade
 16339:20170629:133026.581 completed 39% of database upgrade
 16339:20170629:133026.799 completed 40% of database upgrade
 16339:20170629:133027.050 completed 41% of database upgrade
 16339:20170629:133027.088 completed 42% of database upgrade
 16339:20170629:133027.324 completed 43% of database upgrade
 16339:20170629:133027.837 completed 44% of database upgrade
 16339:20170629:133028.152 completed 45% of database upgrade
 16339:20170629:133028.589 completed 46% of database upgrade
 16339:20170629:133028.908 completed 47% of database upgrade
 16339:20170629:133029.333 completed 48% of database upgrade
 16339:20170629:133029.572 completed 49% of database upgrade
 16339:20170629:133029.801 completed 50% of database upgrade
 16339:20170629:133030.047 completed 51% of database upgrade
 16339:20170629:133030.552 completed 52% of database upgrade
 16339:20170629:133030.872 completed 53% of database upgrade
 16339:20170629:133031.320 completed 54% of database upgrade
 16339:20170629:133031.640 completed 55% of database upgrade
 16339:20170629:133032.076 completed 56% of database upgrade
 16339:20170629:133032.112 completed 57% of database upgrade
 16339:20170629:133032.148 completed 58% of database upgrade
 16339:20170629:133032.591 completed 59% of database upgrade
 16339:20170629:133032.860 completed 60% of database upgrade
 16339:20170629:133033.602 completed 61% of database upgrade
 16339:20170629:133034.252 completed 62% of database upgrade
 16339:20170629:133034.694 completed 63% of database upgrade
 16339:20170629:133035.014 completed 64% of database upgrade
 16339:20170629:133035.450 completed 65% of database upgrade
 16339:20170629:133035.806 completed 66% of database upgrade
 16339:20170629:133036.222 completed 67% of database upgrade
 16339:20170629:133036.541 completed 68% of database upgrade
 16339:20170629:133036.982 completed 69% of database upgrade
 16339:20170629:133039.839 completed 70% of database upgrade
 16339:20170629:133040.088 completed 71% of database upgrade
 16339:20170629:133040.089 Action “Web Monitor” will be disabled during database upgrade: conditions might have matched success event which is not supported anymore.
 16339:20170629:133040.090 Action “adscan_count” will be disabled during database upgrade: conditions might have matched success event which is not supported anymore.
 16339:20170629:133040.090 Action “host_alive” will be disabled during database upgrade: conditions might have matched success event which is not supported anymore.
 16339:20170629:133040.345 completed 72% of database upgrade
 16339:20170629:133040.346 Action “Report problems to Zabbix administrators” condition “Trigger value = PROBLEM” will be removed during database upgrade: this type of cond
ition is not supported anymore
 16339:20170629:133040.347 Action “weixin_trigger” condition “Trigger value = PROBLEM” will be removed during database upgrade: this type of condition is not supported any
more
 16339:20170629:133041.050 completed 73% of database upgrade
 16339:20170629:133041.868 completed 74% of database upgrade
 16339:20170629:133042.391 completed 75% of database upgrade
 16339:20170629:133042.963 completed 76% of database upgrade
 16339:20170629:133043.550 completed 77% of database upgrade
 16339:20170629:133043.858 completed 78% of database upgrade
 16339:20170629:133044.299 completed 79% of database upgrade
 16339:20170629:133044.315 completed 80% of database upgrade
 16339:20170629:133044.714 completed 81% of database upgrade
 16339:20170629:133049.684 completed 82% of database upgrade
 16339:20170629:133055.038 completed 83% of database upgrade
 16339:20170629:133055.398 completed 84% of database upgrade
 16339:20170629:133055.743 completed 85% of database upgrade
 16339:20170629:133056.142 completed 86% of database upgrade
 16339:20170629:133056.441 completed 87% of database upgrade
 16339:20170629:133056.776 completed 88% of database upgrade
 16339:20170629:133057.188 completed 89% of database upgrade
 16339:20170629:133057.296 completed 90% of database upgrade
 16339:20170629:133057.588 completed 91% of database upgrade
 16339:20170629:133057.884 completed 92% of database upgrade
 16339:20170629:133058.300 completed 93% of database upgrade
 16339:20170629:133058.445 completed 94% of database upgrade
 16339:20170629:133058.749 completed 95% of database upgrade
 16339:20170629:133059.540 completed 96% of database upgrade
 16339:20170629:133102.382 completed 97% of database upgrade
 16339:20170629:133102.621 completed 98% of database upgrade
 16339:20170629:133102.939 completed 99% of database upgrade
 16339:20170629:133102.955 completed 100% of database upgrade
 16339:20170629:133102.955 database upgrade fully completed

更多 Zabbix 相关教程集合

Ubuntu 14.04 下 Zabbix2.4.5 源码编译安装  http://www.linuxidc.com/Linux/2015-05/117657.htm

CentOS 7 LNMP 环境搭建 Zabbix3.0  http://www.linuxidc.com/Linux/2017-02/140134.htm

Ubuntu 16.04 安装部署监控系统 Zabbix2.4  http://www.linuxidc.com/Linux/2017-03/141436.htm

Zabbix 监控安装部署及警报配置  http://www.linuxidc.com/Linux/2017-03/141611.htm

Zabbix 触发器表达式详解 http://www.linuxidc.com/Linux/2017-03/141921.htm

CentOS 7.3 安装 Zabbix3.2 

Ubuntu 16.04 下安装部署 Zabbix3.0  http://www.linuxidc.com/Linux/2017-02/140395.htm

CentOS 6.3 下 Zabbix 监控 apache server-status http://www.linuxidc.com/Linux/2013-05/84740.htm

CentOS 7 下 Zabbix 3.0 安装详解 http://www.linuxidc.com/Linux/2017-03/141716.htm

64 位 CentOS 6.2 下安装 Zabbix 2.0.6   http://www.linuxidc.com/Linux/2014-11/109541.htm

ZABBIX 的详细介绍:请点这里
ZABBIX 的下载地址:请点这里

本文永久更新链接地址:http://www.linuxidc.com/Linux/2017-06/145312.htm

正文完
星哥玩云-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-21发表,共计8708字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中