Chapter 15. Configuration Parameters

Table of Contents

General Configuration Parameters
Responder Configuration Parameters
Miscellaneous Configuration Parameters
The Lire Archive and Temporary Files

Configuration variables are set in ${prefix}/etc/lire/defaults. If you want to override any of these variables, create a file ${prefix}/etc/lire/defaults.local. This will not be touched when upgrading the system.

If you don't like fiddling with configuration files manually, you can use the interactive lr_config script to set things up for you. Just start that script now, and use the rest of this section as a reference when needed.

Users can create their own ~/.lire/etc/defaults file. Settings in this file get added to (and possibly override) the ones in ${prefix}/lire/defaults. Users might like to set e.g.

TMPDIR=$HOME/lire/tmp/.
          
(after creating this directory) in their ~/.lire/etc/defaults files.

General Configuration Parameters

These are the parameters you most likely want to modify:

DEFAULT_OUTPUT_FORMAT

This sets the report's default output format. It can be one of txt, xml, html, xhtml, pdf, logml, rtf or docbookx.

LR_SCALE_BYTES

This parameter controls whether bytes values will get scaled to a more human readable format (22.1M, 5.0k, etc.) in reports.

LR_SCALE_SEC

This parameter controls whether duration values will get scaled to a more human readable format (1h, 23.1m, etc.) in reports.

LR_SCALE_NUMBER

This parameter controls whether number values will get scaled to a more human readable format (1M, 3.4k, etc.) in reports.

LR_TARGET_USER

This sets the report's reader profile. Valid values are sysadmin or manager. Lire will tune the subreports' descriptions for that class of reader.

LR_USERLEVEL

This sets the amount of details you will get in subreport's description. Valid values are normal or advanced.

INCLUDEIMAGES

When this variable is set to 1, Lire will include charts whenever possible in the generated report.

LR_MAX_MEMORY

This sets the log file's size threshold above which Lire will use an algorithm which is slower but takes less memory to generate the reports. For optimal performance, you should set this to half your available physical RAM (or more if you don't need a lot of RAM for normal system operation). It defaults to 40Megs.

ARCHIVE

This variable controls whether files are archived. Files which are candidates for archiving are moved from $TMPDIR to the archive. Furthermore, metainfo about the archived files gets stored in a Lire database.

LR_ARCHIVEDIR

This variable sets the directory where files which are canditates for archiving will be archived.

Defaults to ${prefix}/var/lib/lire.