zabbix監控系統3 X公升級4

2021-10-10 11:29:13 字數 4547 閱讀 2133

1.關閉服務

2.更新repo

# cat zabbix.repo

[zabbix]

name=zabbix official repository - $basearch

baseurl=

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-zabbix-a14fe591

[zabbix-non-supported]

name=zabbix official repository non-supported - $basearch

baseurl=

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-zabbix

gpgcheck=1

3.重新整理yum快取

yum makecache
4.更新zabbixrpm包

yum upgrade zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-proxy-mysql
5.開啟zabbix-service服務

systemctl start zabbix-server.service
6.檢視logs

# tail -f /var/log/zabbix/zabbix_server.log

40651:20200117:090620.296 odbc: yes

40651:20200117:090620.296 ssh2 support: yes

40651:20200117:090620.296 ipv6 support: yes

40651:20200117:090620.296 tls support: yes

40651:20200117:090620.296 ******************************

40651:20200117:090620.296 using configuration file: /etc/zabbix/zabbix_server.conf

40651:20200117:090620.300 current database version (mandatory/optional): 03040000/03040007

40651:20200117:090620.300 required mandatory version: 04040000

40651:20200117:090620.300 starting automatic database upgrade

40651:20200117:090620.524 completed 0% of database upgrade

40651:20200117:090711.272 slow query: 50.706882 sec, "alter table `events` add `name` varchar(2048) default '' not null"

40651:20200117:090711.273 completed 1% of database upgrade

40651:20200117:090737.112 slow query: 24.320271 sec, "update events set name='cannot calculate trigger expression.' where source=3 and object=0 and value=1"

40651:20200117:090737.115 completed 2% of database upgrade

40651:20200117:090739.151 completed 3% of database upgrade

40651:20200117:090739.402 completed 4% of database upgrade

40651:20200117:090739.587 completed 5% of database upgrade

40651:20200117:090739.741 completed 6% of database upgrade

40651:20200117:090739.813 completed 7% of database upgrade

40651:20200117:090739.814 completed 8% of database upgrade

40651:20200117:090739.859 completed 9% of database upgrade

40651:20200117:090757.424 slow query: 17.439447 sec, "alter table `alerts` modify `sendto` varchar(1024) default '' not null"

40651:20200117:090757.424 completed 10% of database upgrade

40651:20200117:090757.530 completed 11% of database upgrade

40651:20200117:090757.548 completed 12% of database upgrade

40651:20200117:090757.561 completed 13% of database upgrade

40651:20200117:090757.606 completed 14% of database upgrade

40651:20200117:090757.805 completed 15% of database upgrade

40651:20200117:090757.854 completed 16% of database upgrade

40651:20200117:090757.859 completed 17% of database upgrade

40651:20200117:090803.691 slow query: 3.049138 sec, "alter table `items` add `url` varchar(2048) default '' not null"

40651:20200117:090806.154 completed 18% of database upgrade

40651:20200117:090810.992 completed 19% of database upgrade

40651:20200117:090814.145 slow query: 3.152700 sec, "alter table `items` add `follow_redirects` integer default '1' not null"

40651:20200117:090817.203 slow query: 3.058451 sec, "alter table `items` add `post_type` integer default '0' not null"

等待資料庫公升級完成。

7.解決中文亂碼

ln -fs /usr/share/fonts/wqy-microhei/wqy-microhei.ttc /etc/alternatives/zabbix-web-font
8.解決zabbix4監控oracle11

出現公升級後無法監控oracle

message from 192.168.239.201 is missing header. message ignored.

conf使用之前的conf檔案。

ubunt 下python 2 x 公升級到3 x

1.使用ubuntu 系統檢視python 版本是2.x 想公升級成3.x 系統裡我的是2.x mnt hgfs share project mypython python python 2.7 12 default jul 21 2020,15 19 50 gcc 5.4 020160609 on...

Zabbix監控系統

部署lnmp zabbix監控管理控制台需要通過web頁面展示出來,並且還需要使用mysql來儲存資料,因此需要先為zabbix準備基礎lnmp環境。修改nginx配置 root zabbix vim usr local nginx conf nginx.conf 將php配置資訊注釋關掉 啟動服務...

Zabbix 監控系統

一 zabbix 監控架構 zabbix的監控架構在實際監控架構中,zabbix根據網路環境 監控規模等架構 server client server proxy client。普通監控 外鏈轉存失敗,源站可能有防盜煉機制,建議將儲存下來直接上傳 img zk1uviu3 1585731167452...