In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about the process of ZABBIX3.2 upgrade 3.4. the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
1. Stop the zabbix service
Service zabbix_server stopservice zabbix_agentd stop/usr/local/zabbix/sbin/zabbix_java/shutdown.sh
two。 Save configuration Fil
Mv / usr/local/zabbix / usr/local/zabbix.bakmv / usr/local/nginx/html/zabbix / usr/local/nginx/html/zabbix.bakcp / etc/init.d/zabbix_server / etc/init.d/zabbix_server_bakcp / etc/init.d/zabbix_agentd / etc/init.d/zabbix_agentd_bak
3. Update libevent
Http://libevent.org/
Https://github.com/libevent/libe... 2.1.8-stable.tar.gz
Tar-zxfv libevent-2.1.8-stable.tar.gz
Cd libevent-2.1.8-stable
. / configure
Make & & make install
Ln-s / usr/local/lib/libevent-2.1.so.6 / usr/lib64/4. Compile and install zabbix3.4
Tar-zxfv zabbix-3.4.7.tar.gz
Cd zabbix-3.4.7
. / configure-- prefix=/usr/local/zabbix-- enable-server-- enable-agent-- with-mysql-- with-net-snmp-- with-libcurl-- with-libxml2-with-unixodbc-- with-ssh3-- with-openipmi-- enable-ipv6-- enable-java
. / configure
Make & & make install
5. Modify configuration parameters
Cp / usr/local/zabbix.bak/etc/zabbix_agentd.conf / usr/local/zabbix/etc/zabbix_agentd.confmv / usr/local/zabbix.bak/scripts / usr/local/zabbix/mv / usr/local/zabbix.bak/etc/zabbix_agentd.conf.d / usr/local/zabbix/etc/mv / usr/local/zabbix.bak/sbin/zabbix_java / usr/local/zabbix/sbin/vi / usr/local/zabbix.bak/etc/zabbix_server.conf
# 3.4.Compared with 3.2, the configuration parameters have been added. You need to configure them manually or replace them with the 3.4 configuration files you have already done. You can modify the IP.
Mkdir-p / usr/local/zabbix/logschown-R zabbix:zabbix / usr/local/zabbixmv / etc/init.d/zabbix_server_bak / etc/init.d/zabbix_servermv / etc/init.d/zabbix_agentd_bak / etc/init.d/zabbix_agentd
6. Modify web page parameters
Mkdir / usr/local/nginx/html/zabbixcp-a / root/zabbix-3.4.7/frontends/php/* / usr/local/nginx/html/zabbixcp / usr/local/nginx/html/zabbix/conf/zabbix.conf.php.example / usr/local/nginx/html/zabbix/conf/zabbix.conf.phpvi / usr/local/nginx/html/zabbix/conf/zabbix.conf.php
# 3.4.Compared with 3.2, the configuration parameters have been added. You need to configure them manually or replace them with the 3.4 configuration files you have already done. You can modify the IP.
Chown-R zabbix.zabbix / usr/local/nginx/html/zabbix/chmod-R 755 / usr/local/nginx/html/zabbix/
7. Start zabbix
Chkconfig-add zabbix_serverchkconfig-add zabbix_agentdchkconfig-level 35 zabbix_agentd onchkconfig-level 35 zabbix_server onservice snmpd restartservice mysqld restartservice httpd restart/etc/init.d/zabbix_server start/etc/init.d/zabbix_agentd start/usr/local/zabbix/sbin/zabbix_java/startup.sh
8 observe the log
Vi / usr/local/zabbix/logs/zabbix_server.log
29303:20181012:202522.157 Starting Zabbix Server. Zabbix 3.4.7 (revision 77720). 29303 SNMP monitoring: YES29303:20181012:202522.157 Web monitoring: YES29303:20181012:202522.157 VMware monitoring: YES29303:20181012:202522.157 SMTP authentication: NO29303:20181012:202522.157 Jabber notifications: NO29303 : 202522.157 Ez Texting notifications: YES29303:20181012:202522.157 ODBC: YES29303:20181012:202522.157 SSH2 support: YES29303:20181012:202522.157 IPv6 support: YES29303:20181012:202522.157 TLS support: NO29303:20181012:202522.157 * * 29303 required mandatory version 20181012 optional patches were found29303:20181012:202522.224 starting automatic database upgrade29303:20181012:202522.251 completed 202522.157 using configuration file: / usr/local/zabbix/etc/zabbix_server.conf29303:20181012:202522.224 current database version (mandatory/optional): 03020000 optional patches were found29303:20181012:202522.224 starting automatic database upgrade29303:20181012:202522.251 completed 0302000029303 optional patches were found29303:20181012:202522.224 starting automatic database upgrade29303:20181012:202522.251 completed 20181012 optional patches were found29303:20181012:202522.224 starting automatic database upgrade29303:20181012:202522.251 completed 202522.224 of database upgrade. Slightly 29303 of database upgrade29303:20181012:202529.444 database upgrade fully completed 20181012 completed 202529.444
# automatic database upgrade succeeded
# restart zabbix again and you can see that the database has become 3.4.
Service zabbix_server restart
Vi / usr/local/zabbix/logs/zabbix_server.log
29428:20181012:202928.286 Starting Zabbix Server. Zabbix 3.4.7 (revision 77720). 29428 SNMP monitoring: YES29428:20181012:202928.288 Web monitoring: YES29428:20181012:202928.289 VMware monitoring: YES29428:20181012:202928.289 SMTP authentication: NO29428:20181012:202928.289 Jabber notifications: NO29428 : 202928.289 Ez Texting notifications: YES29428:20181012:202928.289 ODBC: YES29428:20181012:202928.292 SSH2 support: YES29428:20181012:202928.292 IPv6 support: YES29428:20181012:202928.292 TLS support: NO29428:20181012:202928.292 * * 29428 required mandatory version 20181012 required mandatory version 202928.292 using configuration file: / usr/local/zabbix/etc/zabbix_server.conf29428:20181012:202928.368 current database version (mandatory/optional): 03040000 Compact 0304000629428 required mandatory version 20181012 required mandatory version: 03040000 is what the process of upgrading 3.4 is like The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.