本篇文章給大家分享的是有關ZABBIX3.2升級3.4的過程是怎么樣的,小編覺得挺實用的,因此分享給大家學習,希望大家閱讀完這篇文章后可以有所收獲,話不多說,跟著小編一起來看看吧。
創(chuàng)新互聯(lián)建站-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設、高性價比清河網(wǎng)站開發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫,直接使用。一站式清河網(wǎng)站制作公司更省心,省錢,快速模板網(wǎng)站建設找我們,業(yè)務覆蓋清河地區(qū)。費用合理售后完善,10多年實體公司更值得信賴。1.停止zabbix服務
service zabbix_server stop service zabbix_agentd stop /usr/local/zabbix/sbin/zabbix_java/shutdown.sh
2.保存配置文件
mv /usr/local/zabbix /usr/local/zabbix.bak mv /usr/local/nginx/html/zabbix /usr/local/nginx/html/zabbix.bak cp /etc/init.d/zabbix_server /etc/init.d/zabbix_server_bak cp /etc/init.d/zabbix_agentd /etc/init.d/zabbix_agentd_bak
3.更新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.編譯安裝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.修改配置參數(shù)
cp /usr/local/zabbix.bak/etc/zabbix_agentd.conf /usr/local/zabbix/etc/zabbix_agentd.conf mv /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和3.2相比配置參數(shù)增加了,需要手動配置或者用已做好的3.4配置文件替換,修改IP即可
mkdir -p /usr/local/zabbix/logs chown -R zabbix:zabbix /usr/local/zabbix mv /etc/init.d/zabbix_server_bak /etc/init.d/zabbix_server mv /etc/init.d/zabbix_agentd_bak /etc/init.d/zabbix_agentd
6.修改網(wǎng)頁參數(shù)
mkdir /usr/local/nginx/html/zabbix cp -a /root/zabbix-3.4.7/frontends/php/* /usr/local/nginx/html/zabbix cp /usr/local/nginx/html/zabbix/conf/zabbix.conf.php.example /usr/local/nginx/html/zabbix/conf/zabbix.conf.php vi /usr/local/nginx/html/zabbix/conf/zabbix.conf.php
#3.4和3.2相比配置參數(shù)增加了,需要手動配置或者用已做好的3.4配置文件替換,修改IP即可
chown -R zabbix.zabbix /usr/local/nginx/html/zabbix/ chmod -R 755 /usr/local/nginx/html/zabbix/
7.啟動zabbix
chkconfig --add zabbix_server chkconfig --add zabbix_agentd chkconfig --level 35 zabbix_agentd on chkconfig --level 35 zabbix_server on
service snmpd restart service mysqld restart service httpd restart /etc/init.d/zabbix_server start /etc/init.d/zabbix_agentd start /usr/local/zabbix/sbin/zabbix_java/startup.sh
8觀察日志
vi /usr/local/zabbix/logs/zabbix_server.log
29303:20181012:202522.157 Starting Zabbix Server. Zabbix 3.4.7 (revision 77720). 29303:20181012:202522.157 ****** Enabled features ****** 29303:20181012:202522.157 SNMP monitoring: YES 29303:20181012:202522.157 IPMI monitoring: YES 29303:20181012:202522.157 Web monitoring: YES 29303:20181012:202522.157 VMware monitoring: YES 29303:20181012:202522.157 SMTP authentication: NO 29303:20181012:202522.157 Jabber notifications: NO 29303:20181012:202522.157 Ez Texting notifications: YES 29303:20181012:202522.157 ODBC: YES 29303:20181012:202522.157 SSH2 support: YES 29303:20181012:202522.157 IPv6 support: YES 29303:20181012:202522.157 TLS support: NO 29303:20181012:202522.157 ****************************** 29303:20181012:202522.157 using configuration file: /usr/local/zabbix/etc/zabbix_server.conf 29303:20181012:202522.224 current database version (mandatory/optional): 03020000/03020000 29303:20181012:202522.224 required mandatory version: 03040000 29303:20181012:202522.224 optional patches were found 29303:20181012:202522.224 starting automatic database upgrade 29303:20181012:202522.251 completed 0% of database upgrade 29303:20181012:202522.759 completed 1% of database upgrade ....................略 29303:20181012:202529.444 completed 100% of database upgrade 29303:20181012:202529.444 database upgrade fully completed
#數(shù)據(jù)庫自動升級成功
# 再次重啟zabbix可以看到數(shù)據(jù)庫已經(jīng)成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:20181012:202928.288 ****** Enabled features ****** 29428:20181012:202928.288 SNMP monitoring: YES 29428:20181012:202928.288 IPMI monitoring: YES 29428:20181012:202928.288 Web monitoring: YES 29428:20181012:202928.289 VMware monitoring: YES 29428:20181012:202928.289 SMTP authentication: NO 29428:20181012:202928.289 Jabber notifications: NO 29428:20181012:202928.289 Ez Texting notifications: YES 29428:20181012:202928.289 ODBC: YES 29428:20181012:202928.292 SSH2 support: YES 29428:20181012:202928.292 IPv6 support: YES 29428:20181012:202928.292 TLS support: NO 29428:20181012:202928.292 ****************************** 29428:20181012:202928.292 using configuration file: /usr/local/zabbix/etc/zabbix_server.conf 29428:20181012:202928.368 current database version (mandatory/optional): 03040000/03040006 29428:20181012:202928.368 required mandatory version: 03040000
以上就是ZABBIX3.2升級3.4的過程是怎么樣的,小編相信有部分知識點可能是我們?nèi)粘9ぷ鲿姷交蛴玫降?。希望你能通過這篇文章學到更多知識。更多詳情敬請關注創(chuàng)新互聯(lián)-成都網(wǎng)站建設公司行業(yè)資訊頻道。
新聞標題:ZABBIX3.2升級3.4的過程是怎么樣的-創(chuàng)新互聯(lián)
路徑分享:http://jinyejixie.com/article42/pephc.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供App開發(fā)、商城網(wǎng)站、網(wǎng)站維護、企業(yè)網(wǎng)站制作、網(wǎng)站設計公司、定制開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容