<strong><span style="font-size:18px;">Centreon升级 2.4.5 -> 2.6.0</span></strong><br />
<hr />
<br />
升级过程走了很多弯路。。。。。<br />
总结如下:<br />
1. 关注官方文档,而不是盲目网上搜。 https://documentation.centreon.com/docs/centreon/en/latest/upgrade/from_sources.html#shell-installation<br />
英文文档看第一次难,多看几次就很简单了,基本都一个样<br />
<br />
<br />
2. 升级用的初始环境一定要做到与生产环境尽可能一致,这样才能避免在操作生产环境时出现特殊bug<br />
<br />
<br />
3. 不要把简单问题复杂化。<br />
<br />
<br />
[root@sznagios centreon-2.6.0]# sh install.sh -u /usr/local/centreon/etc/<br />
###############################################################################<br />
# #<br />
# Centreon (www.centreon.com) #<br />
# Thanks for using Centreon #<br />
# #<br />
# v2.6.0 #<br />
# #<br />
# infos@centreon.com #<br />
# #<br />
# Make sure you have installed and configured #<br />
# sudo - sed - php - apache - rrdtool - mysql #<br />
# #<br />
###############################################################################<br />
------------------------------------------------------------------------<br />
Checking all needed binaries<br />
------------------------------------------------------------------------<br />
rmOK<br />
cpOK<br />
mvOK<br />
/bin/chmodOK<br />
/bin/chownOK<br />
echoOK<br />
moreOK<br />
mkdirOK<br />
findOK<br />
/bin/grepOK<br />
/bin/catOK<br />
/bin/sedOK<br />
------------------------------------------------------------------------<br />
Detecting old installation<br />
------------------------------------------------------------------------<br />
Finding configuration file in: /usr/local/centreon/etcOK<br />
You seem to have an existing Centreon.<br />
<br />
<br />
<br />
<br />
Do you want to use the last Centreon install parameters ?<br />
[y/n], default to [y]:<br />
> y<br />
<br />
<br />
Using: /usr/local/centreon/etc/instCentCore.conf<br />
/usr/local/centreon/etc/instCentPlugins.conf<br />
/usr/local/centreon/etc/instCentStorage.conf<br />
/usr/local/centreon/etc/instCentWeb.conf<br />
<br />
<br />
Do you want to install : Centreon Web Front<br />
[y/n], default to [n]:<br />
> y<br />
<br />
<br />
Do you want to install : Centreon CentCore<br />
[y/n], default to [n]:<br />
> y<br />
<br />
<br />
Do you want to install : Centreon Nagios Plugins<br />
[y/n], default to [n]:<br />
> y<br />
<br />
<br />
Do you want to install : Centreon Snmp Traps process<br />
[y/n], default to [n]:<br />
> y<br />
<br />
<br />
------------------------------------------------------------------------<br />
Start CentWeb Installation<br />
------------------------------------------------------------------------<br />
/usr/bin/perlOK<br />
Finding Apache user :apache<br />
Finding Apache group :apache<br />
Add group centreon to user apacheOK<br />
Add group centreon to user nagiosOK<br />
Add group nagios to user apacheOK<br />
Add group nagios to user centreonOK<br />
<br />
<br />
------------------------------------------------------------------------<br />
Configure Sudo<br />
------------------------------------------------------------------------<br />
Your sudo has been configured previously<br />
<br />
<br />
Do you want me to reconfigure your sudo ? (WARNING) <br />
[y/n], default to [n]:<br />
> y<br />
Configuring SudoOK<br />
<br />
<br />
------------------------------------------------------------------------<br />
Configure Apache server<br />
------------------------------------------------------------------------<br />
Create '/etc/httpd/conf.d/centreon.conf'OK<br />
Configuring ApacheOK<br />
<br />
<br />
Do you want to reload your Apache ?<br />
[y/n], default to [n]:<br />
> y<br />
Reloading Apache serviceOK<br />
Preparing Centreon temporary files<br />
Change right on /usr/local/centreon/logOK<br />
Change right on /usr/local/centreon/etcOK<br />
Change macros for insertBaseConf.sqlOK<br />
Change macros for sql update filesOK<br />
Change macros for php filesOK<br />
Change macros for perl binaryOK<br />
Change right on /usr/local/nagios/etcOK<br />
Add group nagios to user apacheOK<br />
Add group nagios to user nagiosOK<br />
Add group centreon to user nagiosOK<br />
Disconnect users from WebUI<br />
All users are disconnectedOK<br />
Copy CentWeb in system directory<br />
Install CentWeb (web front of centreon)OK<br />
Change right for install directory<br />
Change right for install directoryOK<br />
Install librariesOK<br />
Write right to Smarty CacheOK<br />
Copying libinstallOK<br />
Change macros for centreon.cronOK<br />
Install Centreon cron.d fileOK<br />
Change macros for centAcl.phpOK<br />
Change macros for downtimeManager.phpOK<br />
Install cron directoryOK<br />
Change right for eventReportBuilderOK<br />
Change right for dashboardBuilderOK<br />
Change macros for centreon.logrotateOK<br />
Install Centreon logrotate.d fileOK<br />
Prepare centFillTrapDBOK<br />
Install centFillTrapDBOK<br />
Prepare centreon_trap_sendOK<br />
Install centreon_trap_sendOK<br />
Prepare centreon_check_perfdataOK<br />
Install centreon_check_perfdataOK<br />
Prepare centreonSyncPluginsOK<br />
Install centreonSyncPluginsOK<br />
Prepare centreonSyncArchivesOK<br />
Install centreonSyncArchivesOK<br />
Install generateSqlLiteOK<br />
Install changeRrdDsName.plOK<br />
Prepare export-mysql-indexesOK<br />
Install export-mysql-indexesOK<br />
Prepare import-mysql-indexesOK<br />
Install import-mysql-indexesOK<br />
Centreon Web Perl lib installedOK<br />
<br />
<br />
------------------------------------------------------------------------<br />
Pear Modules<br />
------------------------------------------------------------------------<br />
Check PEAR modules<br />
PEAR1.4.91.9.4OK<br />
DB1.7.61.7.13OK<br />
DB_DataObject1.8.41.11.2OK<br />
DB_DataObject_FormBuilder1.0.0RC41.0.2OK<br />
MDB22.0.02.4.1OK<br />
Date1.4.61.4.7OK<br />
Archive_Tar1.11.3.7OK<br />
Auth_SASL1.0.11.0.6OK<br />
Console_Getopt1.21.2.3OK<br />
Net_SMTP1.2.81.6.1OK<br />
Net_Socket1.0.11.0.10OK<br />
Net_Traceroute0.210.21.3OK<br />
Net_Ping2.4.12.4.5OK<br />
Validate0.6.20.8.5OK<br />
XML_RPC1.4.51.5.4OK<br />
SOAP0.10.10.13.0OK<br />
Log1.9.111.12.7OK<br />
Archive_Zip0.1.20.1.2OK<br />
All PEAR modulesOK<br />
<br />
<br />
------------------------------------------------------------------------<br />
Centreon Post Install<br />
------------------------------------------------------------------------<br />
Create /usr/local/centreon/www/install/install.conf.phpOK<br />
Create /usr/local/centreon/etc/instCentWeb.conf OK<br />
<br />
<br />
------------------------------------------------------------------------<br />
Start CentStorage Installation<br />
------------------------------------------------------------------------<br />
Preparing Centreon temporary files<br />
/tmp/centreon-setup exists, it will be moved...<br />
install www/install/createTablesCentstorage.sqlOK<br />
CentStorage status Directory already existsPASSED<br />
CentStorage metrics Directory already existsPASSED<br />
Install CentStorage binaryOK<br />
Change right : /usr/local/centreon/var/runOK<br />
Change macros for centstorage init scriptOK<br />
Replace CentStorage sysconfig script MacroOK<br />
<br />
<br />
Do you want me to install CentStorage init script ?<br />
[y/n], default to [n]:<br />
> y<br />
CentStorage init script installedOK<br />
CentStorage sysconfig script installedOK<br />
<br />
<br />
Do you want me to install CentStorage run level ?<br />
[y/n], default to [n]:<br />
> y<br />
CentStorage Perl lib installedOK<br />
Install logAnalyserOK<br />
Install logAnalyserBrokerOK<br />
Install nagiosPerfTraceOK<br />
Change macros for centstorage.cronOK<br />
Install CentStorage cronOK<br />
Change macros for centstorage.logrotateOK<br />
Install Centreon Storage logrotate.d fileOK<br />
Create /usr/local/centreon/etc/instCentStorage.conf OK<br />
<br />
<br />
------------------------------------------------------------------------<br />
Start CentCore Installation<br />
------------------------------------------------------------------------<br />
Preparing Centreon temporary files<br />
/tmp/centreon-setup exists, it will be moved...<br />
Copy CentCore in binary directoryOK<br />
Change right : /usr/local/centreon/var/runOK<br />
Change right : /usr/local/centreon/var/libOK<br />
Change macros for centcore.logrotateOK<br />
Install Centreon Core logrotate.d fileOK<br />
Replace CentCore init script MacroOK<br />
Replace CentCore sysconfig script MacroOK<br />
<br />
<br />
Do you want me to install CentCore init script ?<br />
[y/n], default to [n]:<br />
> y<br />
CentCore init script installedOK<br />
CentCore sysconfig script installedOK<br />
<br />
<br />
Do you want me to install CentCore run level ?<br />
[y/n], default to [n]:<br />
> y<br />
CentCore Perl lib installedOK<br />
Create /usr/local/centreon/etc/instCentCore.conf OK<br />
<br />
<br />
------------------------------------------------------------------------<br />
Start CentPlugins Installation<br />
------------------------------------------------------------------------<br />
Preparing Centreon temporary files<br />
/tmp/centreon-setup exists, it will be moved...<br />
Change macros for CentPluginsOK<br />
Installing the pluginsOK<br />
Change right on centreon.confOK<br />
CentPlugins is installed<br />
<br />
<br />
------------------------------------------------------------------------<br />
Start CentPlugins Traps Installation<br />
------------------------------------------------------------------------<br />
Finding Apache user :apache<br />
Preparing Centreon temporary files<br />
/tmp/centreon-setup exists, it will be moved...<br />
Change macros for snmptrapd.confOK<br />
Replace CentreonTrapd init script MacroOK<br />
Replace CentreonTrapd sysconfig script MacroOK<br />
<br />
<br />
Do you want me to install CentreonTrapd init script ?<br />
[y/n], default to [n]:<br />
> y<br />
CentreonTrapd init script installedOK<br />
CentreonTrapd sysconfig script installedOK<br />
<br />
<br />
Do you want me to install CentreonTrapd run level ?<br />
[y/n], default to [n]:<br />
> y<br />
trapd Perl lib installedOK<br />
<br />
<br />
Should I overwrite all your SNMP configuration files?<br />
[y/n], default to [n]:<br />
> y<br />
Install : snmptrapd.confOK<br />
Install : centreontrapdforwardOK<br />
Install : centreontrapdOK<br />
Create /usr/local/centreon/etc/instCentPlugins.conf OK<br />
hostname: 主机名搜索失败<br />
###############################################################################<br />
# #<br />
# Go to the URL : http:///centreon/ #<br />
# to finish the setup #<br />
# #<br />
# Report bugs at http://forge.centreon.com #<br />
# #<br />
# Thanks for using Centreon. #<br />
# ----------------------- #<br />
# Contact : infos@centreon.com #<br />
# http://www.centreon.com #<br />
# #<br />
###############################################################################<br />
[root@sznagios centreon-2.6.0]# <br />
<br />
<br />
网页版就是脑残下一步既可!!<br />
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30936525/viewspace-2097967/
,如需转载,请注明出处,否则将追究法律责任。