Centreon 升级到新版centreon 19.04实操

栏目: 服务器 · 发布时间: 6年前

内容简介:作者:田逸(sery@163.com)从

作者:田逸(sery@163.com)

升级计划

Centreon 2.8.26 升级到 centreon 19.04. 由于已经添加了很多监控项,不可能再重新手动添加一次。因此,在升级前需要做备份。

Centreon 升级到新版centreon 19.04实操

数据备份

Centreon自带一个备份功能,可以对数据库、各种centreon相关的配置做备份,如果一旦升级失败,使用这些备份恢复,还是比较麻烦的事情。

Centreon 升级到新版centreon 19.04实操

得益于虚拟化平台的帮助,本人是直接把centroen部署到proxmox平台创建的虚拟机上,然后用proxmox的备份功能直接对虚拟机进行备份,万一有问题,可分分钟恢复回来,比手工登录centreon系统,拷贝文件、导入数据库之类的,省事多了!

Centreon 升级到新版centreon 19.04实操

软件包更新及安装

执行下列命令进行包更新

yum install -y   http://yum.centreon.com/standard/19.04/el7/stable/noarch/RPMS/centreon-release-19.04-1.el7.centos.noarch.rpm

yum install -y   http://yum.centreon.com/standard/19.04/el7/stable/noarch/RPMS/centreon-release-19.04-1.el7.centos.noarch.rpm

执行下列命令进行centroen新版本的安装安装:

yum clean all
yum install centos-release-scl-rh
yum search php
yum install rh-php71 rh-php71-*
yum update centreon\*
yum clean all
yum install centos-release-scl-rh
yum search php
yum install rh-php71 rh-php71-*
yum update centreon\*

Centreon 低版本所附属的 php 版本过低,才5.x,因此必须先升级php到7.1,否则无法进行centreon升级。

执行下列命令安装更新httpd:

yum install httpd24-mod_ssl
yum install httpd24-mod_ssl

服务启动

执行下列命令废止就的apache:

systemctl disable httpd
systemctl stop httpd
systemctl disable httpd
systemctl stop httpd

执行下列命令是新版本的apache开机启动及运行:

systemctl enable httpd24-httpd
systemctl start httpd24-httpd
systemctl enable httpd24-httpd
systemctl start httpd24-httpd

执行一下命令启用新版centreon:

systemctl enable centreon
systemctl restart centreon
systemctl enable centreon
systemctl restart centreon

后续操作

浏览器访问centreon所在系统的ip或者域名,正常情况,应该如下图所示:

Centreon 升级到新版centreon 19.04实操

点击按钮“Next”进行下一步。

Centreon 升级到新版centreon 19.04实操

喂,居然敢报错,找到文件/etc/opt/rh/rh-php71/php.ini,使 date.timezone = "Asia/Shanghai",执行如下命令重启php:

killall -9 php-fpm

/opt/rh/rh-php71/root/sbin/php-fpm

killall -9 php-fpm
/opt/rh/rh-php71/root/sbin/php-fpm

再次刷新浏览器页面,解决问题。

Centreon 升级到新版centreon 19.04实操

继续点击按钮“Next”进入下一步操作,新版本号出来了。

Centreon 升级到新版centreon 19.04实操

继续点按钮“Next”,进行下一步跟新操作,页面显示数据库版本更新的历程,可以瞧一眼,反正看一下也不会怀孕!

Centreon 升级到新版centreon 19.04实操

点击最后一个“Next”按钮,升级操作官宣完成!

Centreon 升级到新版centreon 19.04实操

功能验证

浏览器登录到centreon管理后台,用户名、密码等保持不变。新版本centreon19.04最显著的区别是主菜单项的位置变了。

Centreon 升级到新版centreon 19.04实操

到这里就算大功告成,万一失败,可以用上述虚拟机备份进行恢复。


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Math Adventures with Python

Math Adventures with Python

Peter Farrell / No Starch Press / 2018-11-13 / GBP 24.99

Learn math by getting creative with code! Use the Python programming language to transform learning high school-level math topics like algebra, geometry, trigonometry, and calculus! In Math Adventu......一起来看看 《Math Adventures with Python》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

html转js在线工具
html转js在线工具

html转js在线工具