【Zabbix】ZABBIX3.0升級到3.2步驟
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 /var/www/html/zabbix /var/www/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.安裝編譯 yum install -y libssh2-devel ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl --with-libxml2 -with-unixodbc --with-ssh2 --with-openipmi --enable-ipv6 --enable-java make && make install 4.修改配置引數 cp /usr/local/zabbix.bak/etc/zabbix_agentd.conf /usr/local/zabbix/etc/zabbix_agentd.conf cp /usr/local/zabbix.bak/etc/zabbix_server.conf /usr/local/zabbix/etc/zabbix_server.conf 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 5.修改網頁引數 mkdir /var/www/html/zabbix cp -a /root/zabbix-3.2.11/frontends/php/* /var/www/html/zabbix chown -R zabbix.zabbix /var/www/html/zabbix/ chmod -R 755 /var/www/html/zabbix/ cp /var/www/html/zabbix.bak/conf/zabbix.conf.php /var/www/html/zabbix/conf/zabbix.conf.php 6.重建歷史表 mysql -uroot -p use zabbix; DROP TABLE history_log; DROP TABLE history_text; CREATE TABLE `history_log` ( `id` BIGINT(20) UNSIGNED NOT NULL, `itemid` BIGINT(20) UNSIGNED NOT NULL, `clock` INT(11) NOT NULL DEFAULT '0', `timestamp` INT(11) NOT NULL DEFAULT '0', `source` VARCHAR(64) NOT NULL DEFAULT '' COLLATE 'utf8_bin', `severity` INT(11) NOT NULL DEFAULT '0', `value` TEXT NOT NULL COLLATE 'utf8_bin', `logeventid` INT(11) NOT NULL DEFAULT '0', `ns` INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE INDEX `history_log_2` (`itemid`, `id`), INDEX `history_log_1` (`itemid`, `clock`) ) COLLATE='utf8_bin' ENGINE=InnoDB ; CREATE TABLE `history_text` ( `id` BIGINT(20) UNSIGNED NOT NULL, `itemid` BIGINT(20) UNSIGNED NOT NULL, `clock` INT(11) NOT NULL DEFAULT '0', `timestamp` INT(11) NOT NULL DEFAULT '0', `source` VARCHAR(64) NOT NULL DEFAULT '' COLLATE 'utf8_bin', `severity` INT(11) NOT NULL DEFAULT '0', `value` TEXT NOT NULL COLLATE 'utf8_bin', `logeventid` INT(11) NOT NULL DEFAULT '0', `ns` INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE INDEX `history_text_2` (`itemid`, `id`), INDEX `history_text_1` (`itemid`, `clock`) ) COLLATE='utf8_bin' ENGINE=InnoDB ; 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 |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31561206/viewspace-2222507/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Zabbix】ZABBIX3.2升級3.4
- CentOS6.4 升級到7.0的步驟CentOS
- windows10怎樣升級到10586_windows10電腦升級到10586詳細步驟Windows
- 【UPGRADE】升級到Oracle18c基本步驟參考(留存)Oracle
- oracle 10 rac 升級 10.2.0.1升級到10.2.0.5Oracle
- Oracle從10g升級到11g詳細步驟Oracle
- ccproject升級到1135Project
- CH592_IAP升級步驟H5
- CATIA許可證升級步驟
- dp安裝包升級步驟
- centos升級openssl方法及步驟CentOS
- mongodb單機從3.2升級到4.0.4升級MongoDB
- MySQL 5.7 升級到 8.0MySql
- Cocospod 升級到指定版本
- ABP Framework 手動升級指南:從6.0.1升級到7.0.0Framework
- 轉載:Ubuntu 升級 golang 版本完美步驟UbuntuGolang
- 靜默升級oracle 11g (從11.2.0.1升級到11.2.0.4)Oracle
- PHP版本升級:從php7.1升級到php7.2PHP
- Centos升級到openssh9.7CentOS
- 升級 ubuntu,從 18.04 到 22.04Ubuntu
- oracle rac 11.2.0.3 升級到11.2.0.4Oracle
- Mac 升級 PHP 到 7.4 版本MacPHP
- MySQL 5.6.47升級到5.7.20(一)MySql
- CentOS 7 升級到 CentOS 8CentOS
- [kubernetes]-kubeadm升級1.14.2到1.18.2
- MongoDB升級--從3.4到3.6MongoDB
- 升級到iOS 18、降級回iOS 17iOS
- 12.1.0.2 單機 升級 19.16 RAC步驟詳解
- Openshift叢集3.9升級到3.10
- CentOS7.5升級到CentOS 7.6CentOS
- Android targetSdkVersion 升級到 26 總結Android
- suse11 openssh 升級到8.0
- kali 升級msf到msf6
- redhat系統升級openssh到7.5Redhat
- windows10 家庭版升級專業版的圖文步驟(無損升級)Windows
- mediacreationtool升級win10操作步驟_mediacreationtool工具怎麼升級win10系統Win10
- 應用升級SpringCloud版本時的注意事項(Dalston升級到Edgware)SpringGCCloud
- 電腦怎樣升級到win10 2004_升級到win10 2004版的教程Win10