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