How to update Centreon-1.4.1-RC1 to Centreon-1.4.1-RC2 ?

From Wiki Centreon

Jump to: navigation, search

We will try to help you in a short tutorial.

  • Before you begin, make a backup copy of your actual Centreon directory and database (if you want to):
   $> cp -rp oreon oreon-old
   $> /usr/bin/mysqldump -u root -p oreon > oreon-old.sql
  • Stop your ODS Daemon

<bash>

$> /etc/init.d/ods stop

</bash>

  • Download centreon-1.4.1-RC2.tar.gz and copy centreon-1.4.1-RC2.tar.gz to your server. Here we put centreon-1.4.1-RC2.tar.gz in /root
  • unzip centreon-1.4.1-RC2.tar.gz :

<bash>

   $> tar -xvzf centreon-1.4.1-RC2.tar.gz

</bash>

  • FILE UPGRADE

launch upgrade script : <bash>

   $> cd /root/centreon-1.4.1-RC2
   $>./install.sh

</bash>

Answer to all questions for upgrading your version.


  • SQL UPGRADE

Now you go on your Centreon web frontend to make your sql upgrade.

http://your_oreon_ip/oreon/

Apply patch 'UpdateDB-1.4.1-RC2.sql', and press 'next' until you can log on Centreon web page.


  • ODS SQL update

Then you have to patch ods database, this step can not be made through web frontend, so launch in command line the sql commands :


$> cat /root/centreon-1.4.1.-RC2/www/install/sql/Update-ODS-1.4.1-RC2.sql | mysql -u root -p ods


  • RESTART ODS

Then restart ods

<bash>

$> /etc/init.d/ods start

</bash>

Personal tools