Centreon Upgrade auf Version 2.6.6

Am 29. Oktober 2015 wurde die Centreon UI Version 2.6.6 freigegeben. Höchste Zeit eine kleine Upgrade-Anleitung zu veröffentlichen. Wer schon einmal ein Centreon Upgrade durchgeführt hat wird auch hier keine Überraschungen erleben. Alles läuft wie gehabt nach Schema F. Bei einem Upgrade von Version 2.4.x oder älter hat muss allerdings Folgendes beachtet werden.

Im folgenden Beispiel wird von Centreon UI Version 2.6.4 auf Version 2.6.6 aktualisiert. Als Monitoring Engine kommt die Centreon Engine zusammen mit dem Centreon Broker zum Einsatz. Das ganze ist auf Ubuntu 14.04 installiert.

Download

cd /downloads/
wget https://s3-eu-west-1.amazonaws.com/centreon-download/public/centreon/centreon-2.6.6.tar.gz
tar xzf centreon-2.6.6.tar.gz
cd centreon-2.6.6/

Installation starten

./install.sh -u /etc/centreon

Nun startet die Installationsroutine. Hier kann man alles mit „y“ bestätigen, Änderungen wollen wir hier nicht vornehmen.

###############################################################################
#                                                                             #
#                         Centreon (www.centreon.com)                         #
#                          Thanks for using Centreon                          #
#                                                                             #
#                                    v2.6.6                                   #
#                                                                             #
#                               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

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

------------------------------------------------------------------------
        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-engine                 OK
Add group centreon-engine to user www-data                 OK
Add group centreon-engine 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
Configuring Sudo                                           OK

------------------------------------------------------------------------
        Configure Apache server
------------------------------------------------------------------------
Create '/etc/apache2/conf-available/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 /etc/centreon-engine                       OK
Add group centreon-broker to user www-data                 OK
Add group centreon-broker to user centreon-engine          OK
Add group centreon to user centreon-broker                 OK
Change right on /etc/centreon-broker                       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

------------------------------------------------------------------------
Pear Modules
------------------------------------------------------------------------
Check PEAR modules
PEAR                            1.4.9       1.9.4          OK
DB                              1.7.6       1.8.2          OK
DB_DataObject                   1.8.4       1.11.4         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
Archive_Tar                     1.1         1.3.11         OK
Auth_SASL                       1.0.1       1.0.6          OK
Console_Getopt                  1.2         1.3.1          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.9         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

------------------------------------------------------------------------
        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]:
> y
CentStorage init script installed                          OK
CentStorage default script installed                       OK

Do you want me to install CentStorage run level ?
[y/n], default to [n]:
> y
 System start/stop links for /etc/init.d/centstorage already exist.
CentStorage Perl lib installed                             OK
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

------------------------------------------------------------------------
        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]:
> y
CentCore init script installed                             OK
CentCore default script installed                          OK

Do you want me to install CentCore run level ?
[y/n], default to [n]:
> y
 System start/stop links for /etc/init.d/centcore already exist.
CentCore Perl lib installed                                OK
Create /etc/centreon/instCentCore.conf                     OK

------------------------------------------------------------------------
        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
------------------------------------------------------------------------
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]:
> y
CentreonTrapd init script installed                        OK
CentreonTrapd default script installed                     OK

Do you want me to install CentreonTrapd run level ?
[y/n], default to [n]:
> y
 System start/stop links for /etc/init.d/centreontrapd already exist.
trapd Perl lib installed                                   OK

Should I overwrite all your SNMP configuration files?
[y/n], default to [n]:
> y
Install : snmptrapd.conf                                   OK
Install : centreontrapdforward                             OK
Install : centreontrapd                                    OK
Change macros for centreontrapd.logrotate                  OK
Install Centreon Trapd logrotate.d file                    OK
Create /etc/centreon/instCentPlugins.conf                  OK
###############################################################################
#                                                                             #
#                 Go to the URL : http://ubuntu-1404-centreon.lan/centreon/   #
#                            to finish the setup                              #
#                                                                             #
#           Report bugs at https://github.com/centreon/centreon/issues        #
#                                                                             #
#                         Thanks for using Centreon.                          #
#                          -----------------------                            #
#                        Contact : infos@centreon.com                         #
#                          http://www.centreon.com                            #
#                                                                             #
###############################################################################

 

Das Upgrade wird nun im Centreon-Webinterface fortgesetzt. (http://SERVER-IP/centreon)

Das Uprade ist jetzt abgeschlossen und ihr werdet auf die Centreon Login Page weitergeleitet. Nun kann die Arbeit im Webinterface fortgesetzt werden. Das Neustarten von weiteren Diensten etc. ist nicht erforderlich.

Links

Centreon 2.6.6 Changelog

Centreon Upgrade Dokumentation

 

2 Kommentare

  1. Vielen Dank für diese tolle Anleitung. Damit hast du mir sehr weitergeholfen 🙂

    Das einzige Problem das ich noch habe ist, das in init.d kein Script für die Centreon Engine erstellt wird. Hast du da eine Lösung?

    • Hallo Daniel,

      Vielen Dank für den Hinweis. Da ist mir ein kleiner Fehler unterlaufen. Hiermit kannst du das init.d Script erstellen:

      cd /etc/init.d
      mv centengine.conf ../init/
      ln -s /lib/init/upstart-job centengine
      update-rc.d centengine defaults

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.