List of patch for oreon-1.4
From WokOreon
list of the patches that have to be applied to correct bugs of version 1.4
last change : 25/04/2007 - 10:42
Contents |
Patch 5
WARNING, the PATCH5 procedure requires the PATCH4 procedure
- Download oreon-patch-1.4-5.tgz and copy oreon-patch-1.4-5.tgz on your server. Here we put oreon-patch-1.4-5.tgz in /root
http://download.oreon-project.org/patch/oreon-patch-1.4-5.tgz
This version has been validate
26-oreon-2007_04_24.patch
- untar oreon-1.4-5.tgz
$> tar -xvzf oreon-patch-1.4-5.tgz
- Launch this command (where /usr/local/oreon is your Oreon Install)
$> cd /usr/local/oreon $> patch -p1 < /root/oreon-patch-1.4-5/26-oreon-2007_04_24.patch patching file www/footer.php patching file www/header.php patching file www/include/common/common-Func.php patching file www/include/common/javascript/ajaxMonitoring.js patching file www/include/monitoring/engine/MakeXML.php patching file www/include/monitoring/load_status_log.php patching file www/include/monitoring/status/makeJS.php patching file www/include/monitoring/status/service.php patching file www/include/monitoring/status/service_problem.php patching file www/include/monitoring/status/templates/service.ihtml patching file www/include/options/lang/fr.php patching file www/include/views/graphs/generateImage/generateRRDImage.php patching file www/include/views/graphs/simpleRenderer/simpleRenderer.php patching file www/index.php patching file www/login.php patching file www/oreon.php patching file www/Themes/Basic/style.css
Patch 4
WARNING, the PATCH4 procedure requires the PATCH3 procedure
/!\ Warning, please read these instruction to patch because patch ods service was different to patch oreon install/SRC /!\
- Download oreon-patch-1.4-4.tgz and copy oreon-patch-1.4-4.tgz on your server. Here we put oreon-patch-1.4-4.tgz in /root
http://download.oreon-project.org/patch/oreon-patch-1.4-4.tgz
24-oreon-2007_04_13_-_19_28.patch 25-oreon-init_ods_2007_04_13.patch
- untar oreon-1.4-4.tgz
$> tar -xvzf oreon-patch-1.4-4.tgz
- Launch this command (where /usr/local/oreon is your Oreon Install)
$> cd /usr/local/oreon $> patch -p1 < /root/oreon-patch-1.4-4/24-oreon-2007_04_13_-_19_28.patch patching file ODS/lib/getPerfData.pm patching file ODS/lib/getServiceData.pm patching file ODS/lib/indentifyService.pm patching file ODS/lib/purge.pm patching file ODS/lib/updateFunctions.pm patching file ODS/ods.pl
- And launch this other command to patch ODS service.
If you have already installed oreon, use this command
$> cd /etc/init.d/ $> patch -p0 < 25-oreon-init_ods_2007_04_13.patch
Or use this if you patching oreon sources
$> cd /root/oreon-1.4/ODS_SRC_ETC $> patch -p0 < 25-oreon-init_ods_2007_04_13.patch
And enjoy :)
Patch 3
WARNING, the PATCH3 procedure requires the PATCH2 procedure
- Download oreon-patch-1.4-3.tgz and copy oreon-patch-1.4-3.tgz on your server. Here we put oreon-patch-1.4-3.tgz in /root
http://download.oreon-project.org/patch/oreon-patch-1.4-3.tgz
23-oreon-2007_04_10_-_16_27.patch
- untar oreon-1.4-3.tgz :
$> mkdir oreon-patch-1.4-3 $> cd oreon-patch-1.4-3 $> tar -xvzf ../oreon-patch-1.4-3.tgz
- And launch this command (where /usr/local/oreon is your Oreon Install)
$> cd /usr/local/oreon $> patch -p1 < /root/oreon-patch-1.4-3/23-oreon-2007_04_10_-_16_27.patch patching file cron/parsing_log.pl patching file ODS/lib/getServiceData.pm patching file ODS/lib/identifyMetric.pm patching file www/include/views/graphs/graphODS/graphODS.php
Note: it's possible to have an error with "cron/parsing_log.pl". The patch procedure indication the patch was rejected in cron/parsing_log.pl.rej. You must edit cron/parsing_log.pl and delete the line specified in cron/parsing_log.pl.rej (line begins with "-")
Patch 2
WARNING, the PATCH2 procedure requires the PATCH1 procedure
- Download oreon-patch-1.4-2.tgz and copy oreon-patch-1.4-2.tgz on your server. Here we put oreon-patch-1.4-2.tgz in /root
http://download.oreon-project.org/patch/oreon-patch-1.4-2.tgz
22-oreon-2004_04_05_-_17_55.patch
- untar oreon-1.4-2.tgz :
$> mkdir oreon-patch-1.4-2 $> cd oreon-patch-1.4-2 $> tar -xvzf ../oreon-patch-1.4-2.tgz
- And launch this command (where /usr/local/oreon is your Oreon Install)
$> cd /usr/local/oreon $> patch -p1 < /root/oreon-patch-1.4-2/22-oreon-2004_04_05_-_17_55.patch patching file cron/parsing_log.pl patching file cron/reporting/ArchiveLogInDB.php patching file www/include/configuration/configGenerate/DB-Func.php patching file www/include/configuration/configObject/command/listCommand.php patching file www/include/monitoring/load_status_log.php patching file www/include/options/LCA/define/formLCA.php patching file www/include/reporting/dashboard/chart_host.php patching file www/include/reporting/dashboard/chart_service.php patching file www/include/reporting/dashboard/GetXmlHost.php patching file www/include/reporting/dashboard/GetXmlService.php patching file www/include/reporting/dashboard/reporting-func.php patching file www/include/reporting/dashboard/template/viewHostLog.ihtml patching file www/include/reporting/dashboard/viewHostLog.php patching file www/include/reporting/dashboard/viewServicesLog.php patching file www/include/reporting/lang/en.php patching file www/include/reporting/lang/fr.php
Patch 1
- Download oreon-patch-1.4-1.tgz and copy oreon-path-1.4-1.tgz on your server. Here we put oreon-patch-1.4-1.tgz in /root
http://download.oreon-project.org/patch/oreon-patch-1.4-1.tgz
01-oreon_ODS_lib_purge-pm.patch 02-oreon_WWW_inc_sql_pagination-php.patch 03-oreon_WWW_inc_com_pagination-php.patch 04-oreon_cron_parsing_log-pl.patch 05-oreon_WWW_inc_opt_lang_en-php.patch 06-oreon_WWW_inc_opt_lang_fr-php.patch 07-oreon_WWW_inc_opt_oreon_gen_DB-func-php.patch 08-oreon_WWW_inc_opt_gen_ODS_formODS-ihtml.patch 09-oreon_WWW_inc_opt_gen_ODS_formODS-php.patch 10-oreon_WWW_inc_conf_confObj_serv_listService-ihtml.patch 11-oreon_cron_rep_ArchiveLogInDB-php.patch 12-oreon_WWW_inc_conf_confObj_serv_listServiceByHost-php.patch 13-oreon_cron_rep_ArchiveLogInDB_README-txt.patch 14-oreon_cron_rep_apt_host_service-php.patch 15-oreon_WWW_inc_mon_stat_service_problem-php.patch 16-oreon_WWW_inc_mon_stat_serviceSummary-php.patch 17-oreon_WWW_inc_mon_stat_serviceSummaryBySG-php.patch 18-oreon_ODS_lib_updateFunctions-pm.patch 19-oreon_www_include_views_graphs_graphODS_generateImages_generateODSImage.php.patch 20-oreon_www_include_views_graphs_graphODS_generateImages_generateODSImageZoom.php.patch 21-oreon_www_include_views_graphs_graphODS_generateImages_generateODSMetricImage.php.patch
- untar oreon-1.4-1.tgz :
$> tar -xvzf oreon-patch-1.4-1.tgz
- And launch this command (where /usr/local/oreon is your Oreon Install)
$> cd /usr/local/oreon $> patch -p1 < /root/oreon-patch/01-oreon_ODS_lib_purge-pm.patch patching file ODS/lib/purge.pm
Repeat this command for all the patches in /root/oreon-patch
if you aren't sure about these patches, add "--dry-run" option before
$> patch -p1 --dry-run < /root/oreon-patch/01-oreon_ODS_lib_purge-pm.patch patching file ODS/lib/purge.pm
If you want to patch the oreon sources before install/upgrade, replace "/usr/local/oreon" by "/root/oreon-1.4" (where oreon-1.4 is Oreon sources directory)
Or..
$> cd /usr/local/oreon
$> for i in $(ls /root/oreon-patch/*.patch); do patch -p1 < ${i} ; done
patching file ODS/lib/purge.pm
patching file www/include/monitoring/mysql_log/pagination.php
patching file www/include/common/pagination.php
patching file cron/parsing_log.pl
patching file www/include/options/lang/en.php
patching file www/include/options/lang/fr.php
patching file www/include/options/oreon/generalOpt/DB-Func.php
patching file www/include/options/oreon/generalOpt/OreonDataStorage/formODS.ihtml
patching file www/include/options/oreon/generalOpt/OreonDataStorage/formODS.php
patching file www/include/configuration/configObject/service/listService.ihtml
patching file cron/reporting/ArchiveLogInDB.php
Hunk #1 succeeded at 32 with fuzz 2.
patching file www/include/configuration/configObject/service/listServiceByHost.php
patching file cron/reporting/ArchiveLogInDB_README.txt
patching file cron/reporting/api/host_service.php
patching file www/include/monitoring/status/service_problem.php
patching file www/include/monitoring/status/serviceSummary.php
patching file www/include/monitoring/status/serviceSummaryBySG.php
patching file ODS/lib/updateFunctions.pm
HowTo test a patch file
Before applying a patch, you can test this patch.. So you won't have any problems with your Oreon...
In patch manual, the option --dry-run can be used to test.
$> patch -p1 --dry-run < 01-oreon_ODS_lib_purge-pm.patch patching file ODS/lib/purge.pm
Successful :)
Also, it's possible that the patch command rejects a file and generates a .rej file. for example:
$> patch -p1 --dry-run < /root/oreon-patch-1.4-3/23-oreon-2007_04_10_-_16_27.patch PATCH: /root/oreon-patch-1.4-3/23-oreon-2007_04_10_-_16_27.patch patching file cron/parsing_log.pl Hunk #1 FAILED at 30. 1 out of 2 hunks FAILED -- saving rejects to file cron/parsing_log.pl.rej
Don't panic, you must backup cron/parsing_log.pl before applying the patch. And you edit cron/parsing_log.pl.rej.
$> cat cron/parsing_log.pl.rej *************** *** 30,36 **** use vars qw($mysql_user $mysql_passwd $mysql_host $mysql_database_oreon $mysql_database_ods $opt_h $opt_a $data); my $installedPath = "@OREON_PATH@"; - #my $installedPath = "/usr/local/oreon"; require $installedPath."/ODS/etc/conf.pm"; ## Init Date --- 30,35 ---- use vars qw($mysql_user $mysql_passwd $mysql_host $mysql_database_oreon $mysql_database_ods $opt_h $opt_a $data); my $installedPath = "@OREON_PATH@"; require $installedPath."/ODS/etc/conf.pm"; ## Init Date
In this example, the patch function must delete line 33 (line begins by "-"). For applying this patch, just delete line 33.

