| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The global configuration file contains a small set of options that are usually required for a normal EMT installation. It's divided into sections that are denoted by square brackets. The [global] section contains configuration directives that aren't program or plugin-specific. Here is the example file ‘emt.cnf’:
[global] extra_config_dir=/etc/emt.d/ gather_time = 60 [emt_gather] field=timestamp field=hostname output_handler=local_text [local_text] output_file=/var/tmp/emt [emt_view] default_view = default |
This file also includes configuration for EMT programs such as emt_view as well as configuration of the default output handler local_text. Program configuration and output handler configuration can be moved into the extra configuration directory. Internally, all the configuration files are read together as one.
The [emt_gather] section is special in that it defines fields to be gathered and the output handler(s) to send those fields to. By default, all fields are sent to the local_text output handler, which writes them to a file. The [local_text] section defines parameters for the local_text output handler. If there isn't an output_handler=local_text line in the [emt_gather] section, the [local_text] section is ignored.