Menu

Stacks Image 88957
Article en attente de mise à jour

Mise à jour Centreon 2.5.x

Stacks Image 1458
Voici un exemple de mise à jour de Centreon 2.50 vers la 2.5.1. Nous utiliserons la maquette de l'entreprise Duchmol que vous trouverez sur mon site. Nous utiliserons une distribution Debian Whezzy avec Centreon-Engine et Centreon-Broker. Notre supervision est en standalone avec un seul Central.

Mise à jour en ligne de commande

Téléchargez le binaire dans le dossier /usr/local/src et décompressez-le.
cd /usr/local/src
wget http://download.centreon.com/index.php?id=4314 --output-document=centreon-2.5.1.tar.gz
tar xzf centreon-2.5.1.tar.gz 
cd centreon-2.5.1
Lancez la ligne de commande ci-dessous pour faire la mise à jour.
./install.sh -u /etc/centreon
Au lancement du script, le programme confirme si toutes les dépendances sont satisfaites.
###############################################################################
#                                                                             #
#                         Centreon (www.centreon.com)                         #
#                          Thanks for using Centreon                          #
#                                                                             #
#                                    v2.5.0                                   #
#                                                                             #
#                               infos@centreon.com                            #
#                                                                             #
#                   Make sure you have installed and configured               #
#                   sudo - sed - php - apache - rrdtool - mysql               #
#                                                                             #
###############################################################################
------------------------------------------------------------------------
	Checking all needed binaries
------------------------------------------------------------------------
rm                                                         OK
cp                                                         OK
mv                                                         OK
/bin/chmod                                                 OK
/bin/chown                                                 OK
echo                                                       OK
more                                                       OK
mkdir                                                      OK
find                                                       OK
/bin/grep                                                  OK
/bin/cat                                                   OK
/bin/sed                                                   OK
------------------------------------------------------------------------
	Detecting old installation
------------------------------------------------------------------------
Finding configuration file in: /etc/centreon               OK
You seem to have an existing Centreon.


Do you want to use the last Centreon install parameters ?
[y/n], default to [y]:
> y
Répondre y pour utiliser les paramètres existant. Le module d'installation va alors vous si vous souhaitez installer les modules: l'interface Web Centreon, Centcore, les plugins Centreon et les Traps handler Centreon. Répondre y pour tous les modules.
Using:  /etc/centreon/instCentCore.conf
/etc/centreon/instCentPlugins.conf
/etc/centreon/instCentStorage.conf
/etc/centreon/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
Le script d'installation va maintenant procéder à l'installation des différents modules.
Commençons par Centreon Web, l'interface de centreon.
------------------------------------------------------------------------
	Start CentWeb Installation
------------------------------------------------------------------------
/usr/bin/perl                                              OK
Finding Apache user :                                      www-data
Finding Apache group :                                     www-data
Add group centreon to user www-data                        OK
Add group centreon to user centreon                        OK
Add group centreon to user www-data                        OK
Add group centreon to user centreon                        OK

------------------------------------------------------------------------
	Configure Sudo
------------------------------------------------------------------------
Your sudo has been configured previously

Do you want me to reconfigure your sudo ? (WARNING) 
[y/n], default to [n]:
> y
Répondre y pour configurer sudo si vous n'êtes pas sur d'avoir la bonne configuration.
Configuring Sudo                                           OK
Configuration du serveur Web
------------------------------------------------------------------------
	Configure Apache server
------------------------------------------------------------------------
Create '/etc/apache2/conf.d/centreon.conf'                 OK
Configuring Apache                                         OK

Do you want to reload your Apache ?
[y/n], default to [n]:
> y
Reloading Apache service                                   OK
Preparing Centreon temporary files
Change right on /var/log/centreon                          OK
Change right on /etc/centreon                              OK
Change macros for insertBaseConf.sql                       OK
Change macros for sql update files                         OK
Change macros for php files                                OK
Change macros for perl binary                              OK
Change right on /usr/local/centreon-engine/etc             OK
Add group centreon-broker to user www-data                 OK
Add group centreon-broker to user centreon                 OK
Add group centreon to user centreon-broker                 OK
Change right on /usr/local/centreon-broker/etc             OK
Disconnect users from WebUI
All users are disconnected                                 OK
Copy CentWeb in system directory
Install CentWeb (web front of centreon)                    OK
Change right for install directory
Change right for install directory                         OK
Install libraries                                          OK
Write right to Smarty Cache                                OK
Copying libinstall                                         OK
Change macros for centreon.cron                            OK
Install Centreon cron.d file                               OK
Change macros for centAcl.php                              OK
Change macros for downtimeManager.php                      OK
Install cron directory                                     OK
Change right for eventReportBuilder                        OK
Change right for dashboardBuilder                          OK
Change macros for centreon.logrotate                       OK
Install Centreon logrotate.d file                          OK
Prepare centFillTrapDB                                     OK
Install centFillTrapDB                                     OK
Prepare centreon_trap_send                                 OK
Install centreon_trap_send                                 OK
Prepare centreon_check_perfdata                            OK
Install centreon_check_perfdata                            OK
Prepare centreonSyncPlugins                                OK
Install centreonSyncPlugins                                OK
Prepare centreonSyncArchives                               OK
Install centreonSyncArchives                               OK
Install generateSqlLite                                    OK
Install changeRrdDsName.pl                                 OK
Prepare export-mysql-indexes                               OK
Install export-mysql-indexes                               OK
Prepare import-mysql-indexes                               OK
Install import-mysql-indexes                               OK
Centreon Web Perl lib installed                            OK
Relancer éventuellement Apache.
------------------------------------------------------------------------
Pear Modules
------------------------------------------------------------------------
Check PEAR modules
PEAR                            1.4.9       1.9.4          OK
DB                              1.7.6       1.7.14         OK
DB_DataObject                   1.8.4       1.11.2         OK
DB_DataObject_FormBuilder       1.0.0RC4    1.0.2          OK
MDB2                            2.0.0       2.4.1          OK
Date                            1.4.6       1.4.7          OK
HTML_Common                     1.2.2       1.2.5          OK
HTML_QuickForm                  3.2.5       3.2.13         OK
HTML_QuickForm_advmultiselect   1.1.0       1.5.1          OK
HTML_Table                      1.6.1       1.8.3          OK
Archive_Tar                     1.1         1.3.7          OK
Auth_SASL                       1.0.1       1.0.6          OK
Console_Getopt                  1.2         1.2.3          OK
Net_SMTP                        1.2.8       1.6.2          OK
Net_Socket                      1.0.1       1.0.14         OK
Net_Traceroute                  0.21        0.21.3         OK
Net_Ping                        2.4.1       2.4.5          OK
Validate                        0.6.2       0.8.5          OK
XML_RPC                         1.4.5       1.5.5          OK
SOAP                            0.10.1      0.13.0         OK
Log                             1.9.11      1.12.7         OK
Archive_Zip                     0.1.2       0.1.2          OK
All PEAR modules                                           OK

------------------------------------------------------------------------
		Centreon Post Install
------------------------------------------------------------------------
Create /usr/local/centreon/www/install/install.conf.php    OK
Create /etc/centreon/instCentWeb.conf                      OK
Pear doit être à jour normalement, nous continuons avec l'installation de CentStorage. Répondre n car les fichiers de script sont déjà installés.
------------------------------------------------------------------------
	Start CentStorage Installation
------------------------------------------------------------------------
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
install www/install/createTablesCentstorage.sql            OK
CentStorage status Directory already exists                PASSED
CentStorage metrics Directory already exists               PASSED
Install CentStorage binary                                 OK
Change right : /var/run/centreon                           OK
Change macros for centstorage init script                  OK
Replace Centstorage default script Macro                   OK

Do you want me to install CentStorage init script ?
[y/n], default to [n]:
> n
CentStorage init script not installed, please use :
 /usr/local/centreon/INSTALL_DIR_CENTREONexamples/centstoraPASSEDt.d
Install logAnalyser                                        OK
Install logAnalyserBroker                                  OK
Install nagiosPerfTrace                                    OK
Change macros for centstorage.cron                         OK
Install CentStorage cron                                   OK
Change macros for centstorage.logrotate                    OK
Install Centreon Storage logrotate.d file                  OK
Create /etc/centreon/instCentStorage.conf                  OK
Installation du module CentCore. Répondre n car les fichiers de script sont déjà installés.
------------------------------------------------------------------------
	Start CentCore Installation
------------------------------------------------------------------------
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
Copy CentCore in binary directory                          OK
Change right : /var/run/centreon                           OK
Change right : /var/lib/centreon                           OK
Change macros for centcore.logrotate                       OK
Install Centreon Core logrotate.d file                     OK
Replace CentCore init script Macro                         OK
Replace CentCore default script Macro                      OK

Do you want me to install CentCore init script ?
[y/n], default to [n]:
> n
CentCore init script not installed, please use :
 /usr/local/centreon/examples/centcore.init.d              PASSED
Create /etc/centreon/instCentCore.conf                     OK
Installation des plugins et de CentreonTrapd pour les Traps SNMP. Répondre n pour l'installation des scripts et y pour la configuration SNMP.
------------------------------------------------------------------------
	Start CentPlugins Installation
------------------------------------------------------------------------
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
Change macros for CentPlugins                              OK
Installing the plugins                                     OK
Change right on centreon.conf                              OK
CentPlugins is installed

------------------------------------------------------------------------
	Start CentPlugins Traps Installation
------------------------------------------------------------------------

Where is your CentreonTrapd binaries directory
default to [/usr/local/centreon/bin]
> 
/usr/local/centreon/bin                                    OK
Finding Apache user :                                      www-data
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
Change macros for snmptrapd.conf                           OK
Replace CentreonTrapd init script Macro                    OK
Replace CentreonTrapd default script Macro                 OK

Do you want me to install CentreonTrapd init script ?
[y/n], default to [n]:
> n
CentreonTrapd init script not installed, please use :
 /usr/local/centreon/examples/centreontrapd.init.d         PASSED

Should I overwrite all your SNMP configuration files?
[y/n], default to [n]:
> y
Install : snmptrapd.conf                                   OK
Install : centreontrapdforward                             OK
Install : centreontrapd                                    OK
Create /etc/centreon/instCentPlugins.conf                  OK
###############################################################################
#                                                                             #
#                 Go to the URL : http://supervision.duchmol.net/centreon/                    #
#                   	     to finish the setup                              #
#                                                                             #
#                  Report bugs at http://forge.centreon.com                   #
#                                                                             #
#                         Thanks for using Centreon.                          #
#                          -----------------------                            #
#                        Contact : infos@centreon.com                         #
#                          http://www.centreon.com                            #
#                                                                             #
###############################################################################
Le programme d'installation a automatiquement créé un nouveau fichier de configuration apache dans le dossier /etc/apache2/conf.d/. Supprimez le doublon qui doit s'appeler centreon.conf.new s'il est identique à l'ancien fichier de configuration. Il faut terminer l’installation en mode Web.

Installation en mode Web

Utilisez un navigateur internet récent et saisissez l’url suivante :
http://ip du serveur centreon/centreon/
install-centreon01
Démarrage de l'installation Web, cliquez sur "Next"
install-centreon02
Validation des dépendances, cliquez sur "next".
install-centreon03
Lisez les notes de version, puis cliquez sur Next.
install-centreon04
Mise à jour des bases de données, cliquez sur Next.
install-centreon05
Fin de l'installation, cliquez sur Finish
install-centreon06
Vous devriez avoir cette vue. Vous pouvez vous connecter à l'interface d'administration.
Votre supervision fonctionne de nouveau.
Stacks Image 19895
A propos

Nous utilisons des cookies pour nous permettre de mieux comprendre comment le site est utilisé. En continuant à utiliser ce site, vous acceptez cette politique.