Zabbix 3.2.6 升级到 Zabbix 3.4.3
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Zabbix 3.2.6 升级到 Zabbix 3.4.3相关的知识,希望对你有一定的参考价值。
一、Zabbix 3.4.3新功能
1 新仪表板
1.1 Map导航树
2 网络设备监控模板
3 Proxies代理支持远程命令
4 从属监控项
5 告警并行处理
6 已通知的问题确认
7 监控项数据预处理
新预处理选项
8 可配置的JMX端点
9 JMX低级别发现
10 用于正则表达式的PCRE库
11 Web监控中的URL编码支持
URL自动编码
变量灵活的URL编码
域名支持Unicode编码
12 Map改进
权限变更
支持多触发器
移动元素
复制和粘贴元素
添加形状和线条
13 在时间段内支持宏和时间后缀
14 事件标签中的主机宏支持
15 前端的改进
15.1 去掉对IE9和IE10的支持
15.2 完整克隆screens和maps
15.3 单选按钮和复选框风格的统一
15.4 将相同的权限应用于嵌套的主机组
15.5 字段大小的增加
15.6 其他
16 守护进程改善
16.1 IPMI轮询
16.2 配置参数
16.3 关于agent代理的公制线程崩溃的更多信息
17 监控项的变更和改进
18 低级发现
19 脚本和命令返回码检查
https://www.zabbix.com/documentation/3.4/manual/introduction/whatsnew340
二、升级准备
1、停止Zabbix server
service zabbix_server stop
2、备份现有的Zabbix数据库
mysqldump -uzabbix -pzabbix zabbix > zabbix20171021.sql
3、备份配置文件,PHP文件和Zabbix二进制文件
mv /etc/zabbix /etc/zabbix32 mv /var/www/zabbix /var/www/zabbix32 mv /usr/local/zabbix /usr/local/zabbix32
三、编译安装新版本
1、下载源码包
tar xf zabbix-3.4.3.tar.gz
2、编译
我这里加上了很多功能,所以编译的插件比较多,请自行解决依赖关系。
cd zabbix-3.4.3 ./configure --prefix=/usr/local/zabbix --sysconfdir=/etc/zabbix --enable-server --enable-agent --enable-java --with-mysql --with-libxml2 --with-openipmi --with-net-snmp --with-openssl --with-libcurl make make install
3、修改配置文件
/etc/zabbix/zabbix_server.conf
4、启动服务
service zabbix_server start
5、升级监测
13149:20171021:124628.445 Starting Zabbix Server. Zabbix 3.4.3 (revision 73588). 13149:20171021:124628.445 ****** Enabled features ****** 13149:20171021:124628.445 SNMP monitoring: YES 13149:20171021:124628.445 IPMI monitoring: YES 13149:20171021:124628.445 Web monitoring: YES 13149:20171021:124628.445 VMware monitoring: YES 13149:20171021:124628.445 SMTP authentication: NO 13149:20171021:124628.445 Jabber notifications: NO 13149:20171021:124628.445 Ez Texting notifications: YES 13149:20171021:124628.445 ODBC: NO 13149:20171021:124628.445 SSH2 support: NO 13149:20171021:124628.445 IPv6 support: NO 13149:20171021:124628.445 TLS support: YES 13149:20171021:124628.445 ****************************** 13149:20171021:124628.445 using configuration file: /etc/zabbix/zabbix_server.conf 13149:20171021:124628.482 current database version (mandatory/optional): 03020000/03020000 13149:20171021:124628.482 required mandatory version: 03040000 13149:20171021:124628.482 optional patches were found 13149:20171021:124628.482 starting automatic database upgrade 13149:20171021:124628.522 completed 0% of database upgrade 13149:20171021:124629.339 completed 1% of database upgrade 13149:20171021:124629.550 completed 2% of database upgrade 13149:20171021:124629.669 completed 3% of database upgrade 13149:20171021:124629.693 completed 4% of database upgrade 13149:20171021:124629.750 completed 5% of database upgrade 13149:20171021:124629.810 completed 6% of database upgrade 13149:20171021:124629.859 completed 7% of database upgrade 13149:20171021:124629.900 completed 8% of database upgrade 13149:20171021:124629.984 completed 9% of database upgrade 13149:20171021:124631.323 completed 10% of database upgrade 13149:20171021:124632.084 completed 11% of database upgrade 13149:20171021:124632.127 completed 12% of database upgrade 13149:20171021:124632.135 completed 13% of database upgrade 13149:20171021:124633.618 completed 14% of database upgrade 13149:20171021:124637.725 completed 15% of database upgrade 13149:20171021:124637.799 completed 16% of database upgrade 13149:20171021:124637.839 completed 17% of database upgrade 13149:20171021:124637.904 completed 18% of database upgrade 13149:20171021:124637.932 completed 19% of database upgrade 13149:20171021:124637.965 completed 20% of database upgrade 13149:20171021:124638.082 completed 21% of database upgrade 13149:20171021:124638.127 completed 22% of database upgrade 13149:20171021:124638.248 completed 23% of database upgrade 13149:20171021:124638.951 completed 24% of database upgrade 13149:20171021:124639.005 completed 25% of database upgrade 13149:20171021:124639.050 completed 26% of database upgrade 13149:20171021:124639.123 completed 27% of database upgrade 13149:20171021:124639.159 completed 28% of database upgrade 13149:20171021:124639.214 completed 29% of database upgrade 13149:20171021:124639.273 completed 30% of database upgrade 13149:20171021:124639.308 completed 31% of database upgrade 13149:20171021:124639.361 completed 32% of database upgrade 13149:20171021:124639.406 completed 33% of database upgrade 13149:20171021:124639.450 completed 34% of database upgrade 13149:20171021:124639.459 completed 35% of database upgrade 13149:20171021:124639.471 completed 36% of database upgrade 13149:20171021:124639.497 completed 37% of database upgrade 13149:20171021:124639.548 completed 38% of database upgrade 13149:20171021:124639.556 completed 39% of database upgrade 13149:20171021:124639.614 completed 40% of database upgrade 13149:20171021:124639.702 completed 41% of database upgrade 13149:20171021:124639.735 completed 42% of database upgrade 13149:20171021:124639.742 completed 43% of database upgrade 13149:20171021:124639.798 completed 44% of database upgrade 13149:20171021:124640.310 completed 45% of database upgrade 13149:20171021:124641.402 completed 46% of database upgrade 13149:20171021:124642.016 completed 47% of database upgrade 13149:20171021:124642.491 completed 48% of database upgrade 13149:20171021:124643.458 completed 49% of database upgrade 13149:20171021:124643.872 completed 50% of database upgrade 13149:20171021:124643.933 completed 51% of database upgrade 13149:20171021:124643.967 completed 52% of database upgrade 13149:20171021:124644.036 completed 53% of database upgrade 13149:20171021:124644.061 completed 54% of database upgrade 13149:20171021:124644.114 completed 55% of database upgrade 13149:20171021:124644.144 completed 56% of database upgrade 13149:20171021:124644.179 completed 57% of database upgrade 13149:20171021:124644.217 completed 58% of database upgrade 13149:20171021:124644.247 completed 59% of database upgrade 13149:20171021:124644.290 completed 60% of database upgrade 13149:20171021:124644.341 completed 61% of database upgrade 13149:20171021:124644.369 completed 62% of database upgrade 13149:20171021:124644.412 completed 63% of database upgrade 13149:20171021:124644.485 completed 64% of database upgrade 13149:20171021:124644.520 completed 65% of database upgrade 13149:20171021:124644.552 completed 66% of database upgrade 13149:20171021:124644.569 completed 67% of database upgrade 13149:20171021:124644.579 completed 68% of database upgrade 13149:20171021:124645.093 completed 69% of database upgrade 13149:20171021:124645.188 completed 70% of database upgrade 13149:20171021:124645.246 completed 71% of database upgrade 13149:20171021:124646.708 completed 72% of database upgrade 13149:20171021:124646.744 completed 73% of database upgrade 13149:20171021:124646.781 completed 74% of database upgrade 13149:20171021:124646.823 completed 75% of database upgrade 13149:20171021:124646.857 completed 76% of database upgrade 13149:20171021:124646.956 completed 77% of database upgrade 13149:20171021:124647.003 completed 78% of database upgrade 13149:20171021:124647.049 completed 79% of database upgrade 13149:20171021:124647.092 completed 80% of database upgrade 13149:20171021:124647.178 completed 81% of database upgrade 13149:20171021:124647.242 completed 82% of database upgrade 13149:20171021:124647.312 completed 83% of database upgrade 13149:20171021:124647.381 completed 84% of database upgrade 13149:20171021:124647.531 completed 85% of database upgrade 13149:20171021:124647.577 completed 86% of database upgrade 13149:20171021:124647.648 completed 87% of database upgrade 13149:20171021:124647.703 completed 88% of database upgrade 13149:20171021:124648.853 completed 89% of database upgrade 13149:20171021:124649.475 completed 90% of database upgrade 13149:20171021:124650.590 completed 91% of database upgrade 13149:20171021:124650.593 completed 92% of database upgrade 13149:20171021:124650.598 completed 93% of database upgrade 13149:20171021:124650.616 completed 94% of database upgrade 13149:20171021:124650.621 completed 95% of database upgrade 13149:20171021:124650.623 completed 96% of database upgrade 13149:20171021:124650.629 completed 97% of database upgrade 13149:20171021:124650.636 completed 98% of database upgrade 13149:20171021:124650.693 completed 99% of database upgrade 13149:20171021:124650.772 completed 100% of database upgrade 13149:20171021:124650.772 database upgrade fully completed 13149:20171021:124651.008 server #0 started [main process] 13151:20171021:124651.009 server #1 started [configuration syncer #1] 13152:20171021:124651.009 server #2 started [ipmi manager #1] 13153:20171021:124651.009 server #3 started [alerter #1] 13154:20171021:124651.009 server #4 started [alerter #2] 13155:20171021:124651.010 server #5 started [alerter #3] 13156:20171021:124651.010 server #6 started [housekeeper #1] 13157:20171021:124651.010 server #7 started [timer #1] 13158:20171021:124651.010 server #8 started [http poller #1] 13159:20171021:124651.011 server #9 started [discoverer #1] 13160:20171021:124651.011 server #10 started [history syncer #1] 13161:20171021:124651.012 server #11 started [history syncer #2] 13162:20171021:124651.012 server #12 started [history syncer #3] 13163:20171021:124651.012 server #13 started [history syncer #4] 13164:20171021:124651.012 server #14 started [escalator #1] 13166:20171021:124651.013 server #16 started [ipmi poller #2] 13168:20171021:124651.014 server #18 started [java poller #1] 13169:20171021:124651.014 server #19 started [java poller #2] 13167:20171021:124651.016 server #17 started [ipmi poller #3] 13175:20171021:124651.017 server #25 started [vmware collector #3] 13173:20171021:124651.017 server #23 started [vmware collector #1] 13170:20171021:124651.017 server #20 started [java poller #3] 13176:20171021:124651.018 server #26 started [vmware collector #4] 13172:20171021:124651.019 server #22 started [self-monitoring #1] 13178:20171021:124651.019 server #27 started [vmware collector #5] 13174:20171021:124651.019 server #24 started [vmware collector #2] 13180:20171021:124651.019 server #28 started [task manager #1] 13171:20171021:124651.019 server #21 started [proxy poller #1] 13165:20171021:124651.020 server #15 started [ipmi poller #1] 13181:20171021:124651.020 server #29 started [poller #1] 13182:20171021:124651.021 server #30 started [poller #2] 13183:20171021:124651.022 server #31 started [poller #3] 13184:20171021:124651.023 server #32 started [poller #4] 13185:20171021:124651.023 server #33 started [poller #5] 13186:20171021:124651.023 server #34 started [unreachable poller #1] 13187:20171021:124651.024 server #35 started [trapper #1] 13190:20171021:124651.024 server #37 started [trapper #3] 13191:20171021:124651.024 server #38 started [trapper #4] 13194:20171021:124651.026 server #41 started [alert manager #1] 13195:20171021:124651.026 server #42 started [preprocessing manager #1] 13193:20171021:124651.026 server #40 started [icmp pinger #1] 13192:20171021:124651.026 server #39 started [trapper #5] 13189:20171021:124651.026 server #36 started [trapper #2] 13196:20171021:124651.122 server #43 started [preprocessing worker #1] 13197:20171021:124651.123 server #44 started [preprocessing worker #2] 13200:20171021:124651.124 server #45 started [preprocessing worker #3]
四、安装3.4WEB
1、复制WEB文件夹
cp -a frontends/php /var/www/zabbix chown apache.apache /var/www/zabbix -R
本文出自 “运维点滴记录” 博客,请务必保留此出处http://wzlinux.blog.51cto.com/8021085/1974806
以上是关于Zabbix 3.2.6 升级到 Zabbix 3.4.3的主要内容,如果未能解决你的问题,请参考以下文章
zabbix 3.2.6+centos 7 +nginx 1.12+ mysql 5.6+ Grafana +php 5.6