How to update Centreon-1.4.1 to Centreon-1.4.2.4 ?
From Wiki Centreon
BE CAREFULL ! You must upgrade in version 1.4.1 before upgrading in version 1.4.2.4 !!
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 centreon centreon-old
$> /usr/bin/mysqldump -u root -p centreon > centreon.sql
$> /usr/bin/mysqldump -u root -p ods > ods.sql
- Download centreon-1.4.2.4.tar.gz and copy centreon-1.4.2.4.tar.gz to your server. Here we put centreon-1.4.2.4.tar.gz in /root
- unzip centreon-1.4.2.4.tar.gz :
<bash>
$> tar -xvzf centreon-1.4.2.4.tar.gz
</bash>
- FILE UPGRADE
launch upgrade script : <bash>
$> cd /root/centreon-1.4.2.4 $>./install.sh
</bash>
Answer to all questions for upgrading your version.
- Don't forget to do a dos2unix on your plugins.
if you have installed nagios plugins in /usr/local/nagios/libexec $> dos2unix /usr/local/nagios/libexec/process-* /usr/local/nagios/libexec/check_centreon_*
- SQL UPGRADE
Now you go on your Centreon web frontend to make your sql upgrade.
http://your_oreon_ip/oreon/ or http://your_oreon_ip/centreon/
Apply patch 'UpdateDB-1.4.1_to_1.4.2.4.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.2.4/www/install/sql/Update-ODS-1.4.1_to_1.4.2.sql | mysql -u root -p ods

