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