Summary for Patch 345 (Verified)

Summary Fix loading of recorder data (with recover option)
Platform Unix
Category bugfix
Valid for 4.9.x, 5.0.0.x, 5.0.1.x, 5.0.2.x, 5.1.0.x, 5.1.1.x, 5.2.0.x
Requires 4.9.0.1 - 5.0.1.0: 334
Client Required Patch/es
Supersedes 343
Superseded by 409 : Verified / Not hidden
Affects Server: Usage Analyzer
Last Updated September 30, 2009

Download now

Download_red patch345.tar.gz

Description

This patch fixes a problem with loading recorder data.
Archiver failed to accept that last field in line
could have an empty value.

This patch also include a recover option to help
with reprocessing previously failed recorder data.

To do this, manually run the following command
as the "openit" user:

  /opt/openit/bin/archiver -c /var/opt/openit/etc/daft.conf --recover

This will scan the files in the gargabe directory
(usually /var/opt/openit/temp/gargage), check if 
files "failed" with empty last field values and 
if so, insert the missing lines into the archive
and delete the processed file from gargage.

In addition to inserting the data into the archive
you will need to regenerate the recorder data
into the database. Run

  /opt/openit/bin/regenerate_data --archtype recorderevents <start> <end>

and

  /opt/openit/bin/regenerate_data --archtype recorderperiod <start> <end>

(where <start> and <end> are dates on YYYY-MM-DD format).

To void blocking normal archiver operations, it's possible to limit 
the running time of the recover operation by adding the parameter

  --timelimit <time>

where time is given using the P<period> format, e.g

	P2H		2 hours
	P90M		90 minutes 
	P900S		900 seconds

Supersedes Patch Description

Expand all

Patch 343 — Fix loading of recorder data
This patch fixes a problem with loading recorder data.
Archiver failed to accept that last field in line
could have an empty value.

Installation

Unpack tar file in e.g /tmp/patch on the Open iT host. Do the 
following as root:

  cd /tmp/patch
  ./patch.pl

Corresponding Windows Patches

No corresponding Patches available.



Back to Version List