How to update oreon-1.4 to oreon-1.4.1-RC1 ?
From Wiki Centreon
We will try to help you in a short tutorial.
- Before you begin, make a backup copy of your actual oreon 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-RC1.tar.gz and copy centreon-1.4.1-RC1.tar.gz to your server. Here we put centreon-1.4.1-RC1.tar.gz in /root
- unzip centreon-1.4.1-RC1.tar.gz :
<bash>
$> tar -xvzf centreon-1.4.1-RC1.tar.gz
</bash>
- FILE UPGRADE
launch upgrade script : <bash>
$> cd /root/centreon-1.4.1-RC1 $>./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.
Apply patch 'UpdateDB-1.4.1-RC1.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.-RC1/ODS_SQL_UPGRADE_1.4.1-RC1.sql | mysql -u root -p ods
It may take a long time if your database is big. be patient !!
Then you have to update the DS name of each ODS RRD database created since Centreon 1.4 install. Download this script : [1] or use the script in /root/centreon-1.4.1-RC1/renameDS.pl. Change the installedPath to the correct one by replacing the macro @OREON_PATH@ at the top of the file and launch it. Each DS name 'metric' will be renamed to it's real name in the ODS database (will be useful for PhpWeathermap addon..).
- IMPORTANT
In this new release, we don't manage anymore graphs plugins storage, so your check_graph_* plugins will not work anymore (Problem with -S arg will occur...)
Please modify the commands using those plugins by using now check_centreon_* plugins.
For example :
command "check_graph_ping" => "$USER1$/check_ graph_ping .pl ... -g -S $ARGn$ "
can became "check_graph_ping" => "$USER1$/check_centreon_ping ..."
or "check_centreon_ping" => "$USER1$/check_centreon_ping ..."
- RESTART ODS
Then generate/restart Nagios and start ods
<bash>
$> /etc/init.d/ods start
</bash> link title

