Centreon 19.04升级到centreon 20.04-田逸(sery)
source link: https://blog.51cto.com/sery/2495136
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
更新系统及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.2systemctl 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
刷新浏览器,报错消除。
验证升级是否正常
命令行执行如下指令(gorgoned不存在于以前的版本)
systemctl restart cbd centengine gorgoned
systemctl restart cbd centengine gorgoned
重新登录centreon web管理后台,将发现poller没有工作。需要选择poller,进行输出操作。
Poller重启以后,数据就导进来,恢复正常。Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK