更新系統及centreon源
1、 運行如下命令進行centos 系統更新
yum update
yum update
2、 運行下列命令,更新centreon源。
cd /etc/yum.repo.d
cp centreon.repo centreon.repo.bk20200514
sed -i s/19.04/20.04/g centreon.repo
cd /etc/yum.repo.d
cp centreon.repo centreon.repo.bk20200514
sed -i s/19.04/20.04/g centreon.repo
centreon 更新
1、 清理yum緩存
yum clean all --enablerepo=*
yum clean all --enablerepo=*
2、 更新centreon
yum update centreon\*
yum update centreon*
啓動新的php7.2
升級完以後,與之配合的php升級到7.2.如果不做任何處理,當我們在瀏覽器進行登錄管理時,將出現如下報錯。
執行如下指令,關閉php7.1並啓動php7.2
systemctl stop rh-php71-php-fpm
systemctl start rh-php72-php-fpm
systemctl stop rh-php71-php-fpm
systemctl start rh-php72-php-fpm
再刷新web頁面,即可進行下一步的升級操作。
根據頁面指引時區初始化設置。
在系統命令行下,修改文件/etc/opt/rh/rh-php72/php.ini,設置其時區爲"Asia/Shanghai"(默認值被註釋掉,並且爲空)。
修改完成以後,需要執行如下指令重啓php7.2.
systemctl restart rh-php72-php-fpm
systemctl restart rh-php72-php-fpm
刷新瀏覽器,報錯消除。
繼續進行下一步,點按鈕“Next”。
開始更新作業。
沒有意外,出現下列頁面,恭喜,升級成功。
驗證升級是否正常
命令行執行如下指令(gorgoned不存在於以前的版本)
systemctl restart cbd centengine gorgoned
systemctl restart cbd centengine gorgoned
重新登錄centreon web管理後臺,將發現poller沒有工作。需要選擇poller,進行輸出操作。
Poller重啓以後,數據就導進來,恢復正常。