Parameter types for Event Adapters
The following table describes the parameters types available for use with the BMC Event Adapters.
Parameter types
Global parameters
The following table describes the global parameters that can be used with the adapters and each parameter's characteristics.
Global parameters
Parameter | Type | Unit | Default value | Description |
---|---|---|---|---|
EventsPerPoll | Integer > 0 | events | 5 | Used only if ReadsPerEngine = 1; defines the maximum number of events each adapter generates per poll cycle. If ReadsPerEngine = 1, records are read until the number of events created equals the value of the EventsPerPoll parameter. Otherwise, the maximum reads per engine per poll cycle is set by the value of the ReadsPerEngine parameter. |
PollInterval | Integer > 0 | sec | 5 | Sleep interval during which all adapters are idle |
ReadsPerEngine | Integer > 0 | reads | 5 | Defines the maximum number of reads each adapter performs per poll cycle. |
TraceFile | File name | None | mcxa.trace | Name of the trace file |
TraceFileCount | Integer > 0 | None | 10 | Maximum number of renamed trace files that are kept in the trace file directory
|
TraceLevel | Integer (0-6) | None | 3 | Valid values are as follows:
|
TraceSizeMax | Integer >= 0 | byte | 1,000,000 | Maximum trace file size
|
TraceSizePeriod | Integer > 0 | none | 10 | Frequency, in number of messages logged, at which the adapter checks the size of the trace file. |
Common parameters
The following table describes the common parameters that can be used with the adapters:
Common parameters
Parameter | Type | Description |
---|---|---|
Engine | Perl module name | Name of the adapter
The IP Adapter definitions vary slightly, with the inclusion of Adapter:: in the path:
|
MapFile | File name | Map file name |
MapFunctionsName | File name | Name of a Perl script or Perl module that contains user-defined functions to be used inside the .map file |
MapUseDefaultClass | Bool (0-1 ) | Indicates whether incoming events that do not match a CLASS described in the map file are mapped to the DEFAULT class
|
ServerName | Cell name | Name of the cell to which events processed by the adapter are sent If ServerName is not defined, events are formatted in BAROC and sent to the standard output. |
Specific parameters
Each adapter definition includes specific parameters that are used to configure only the adapter instance in which they are listed.
Each type of adapter has a different set of specific parameters.
- For Perl Event Log Adapter for Windows parameters, see Perl EventLog Adapter for Windows parameters.
- For Event Log Adapter parameters, see LogFile Adapter parameters.
- For SNMP Trap Adapter parameters, see SNMP Adapter parameters.
For IP Adapter parameters, see Using the SNMP Adapter Configuration Manager
Perl EventLog Adapter for Windows parameters
This section describes the specific parameters used by the Perl Event Log Adapter for Windows.
To use the Perl Event Log Adapter for Windows, set the Engine parameter in the mcxa.conf file as follows:
Engine = MA::EEventLog
The default map file is mceventlog.map.
The following table describes the Perl Event Log Adapter parameters:
Perl EventLog Adapter for Windows parameters
Parameter | Description |
---|---|
ELResendAll | Enables restarting the reading of the EventLog
|
ELRecoveryIntervalMin | Recovery time interval, specified in minutes |
ELLogNotRead | A string that contains the names, separated by a colons, of the event logs the user does not want to read, such as System, Application, or Security |
LogFile Adapter parameters
To use the LogFile Adapter for Windows, set the Engine parameter in the mcxa.conf file as follows:
Engine = MA::ELogfile
The default map file is mclogfile.map.
The following table describes the LogFile Adapter parameters:
LogFile Adapter parameters
Parameter | Type | Unit | Default value | Description |
---|---|---|---|---|
LogFile | File name | None | Standard input | Full path to the monitored log file |
LogFieldSeparator | Regex | None | \s+ | A regular expression, often a character such as " , ", that delimits the attributes of an event when LogRegExpr is empty
|
LogFlushPosPeriod | Integer > 0 | None | 10 | Number of events after which the log position is saved to disk
|
LogKeepEmpty | Bool (0 - 1) | None | 0 | Indicates whether to keep or drop empty events or events only constituted by blanks
|
LogMaxCount | Integer > 0 | None | 10 | Maximum number of log files when log rotation is enabled
|
LogMaxSize | Integer > 0 | Byte | 1,000,000 | Maximum size of log file, in bytes |
LogProcessName | String | None | Empty | (UNIX only) name of the process receiving the kill-HUPcommand |
LogReadAll | Bool (0 - 1) | None | 0 | Indicates whether the whole log file is read the first time the adapter starts
|
LogReadAllReopen | Bool (0 - 1) | None | 1 | Indicates whether an adapter that detects that a log file has changed opens a new log file from the beginning or the end Valid values: |
LogRecordSeparator | Regex | None | \n | Regular expression, often a simple character or string, that delimits two events.
|
LogRegExpr | Regex | None | Empty | Contains a regular expression, in Perl 5 style, used to match an event |
LogRegExprGlobal | Bool (0 - 1) | None | 1 | Indicates whether matching with the LogRegExpr parameter is performed globally |
LogRememberPos | Bool (0 - 1) | None | 0 | Indicates whether the adapter persistently remembers the position of the last log entry
|
LogRotate | Bool (0 - 1) | None | 0 | Indicates whether a new log file is created when the size of the log file surpasses the value of the LogMaxSize parameter |
LogSmartOpen | Bool (0 - 1) | None | 1 | Indicates whether the part of the log file that has not been consumed is considered as being appended to the beginning of the newer log file, when the log file is replaced
|
LogStatPeriod | Integer > 5 | sec | 15 | Indicates whether the adapter regularly performs the stat command to check whether the log file exists, to check its i-node on UNIX platforms, or to check whether its size has not decreased on Windows platforms |
LogSupportKillHUP | Bool (0 - 1) | None | 0 | (UNIX only) If LogSupportKillHUP=1, a kill -HUP command is launched on LogProcessName at each rotation of the log file. Note that if LogSupportKillHUP=0 and LogRotate=1, it is important to ensure that the process that generates the events can detect the rotation. |
LogVarPrefix | String | None | "varlog" | Prefix of the input variables that corresponds to the matching of the event variables $<logVarPrefix>0 to$<logVarPrevix><n>, where <n> is the maximum number of matches. |
SNMP Adapter parameters
To use the SNMP Adapter, set the Engine parameter in the mcxa.conf file as follows:
Engine = MA::ESnmpTrap
The default map file is mcsnmptrapd.map.
The following table describes the SNMP Adapter parameters:
SNMP Adapter parameters
Parameter | Type | Description |
---|---|---|
SnmpDatFile | File name | Name of the .dat file that contains information used to translate incoming traps If the parameter value is a relative path, the file must be located in the installationDirectory\pw\server\etc directory. The .dat file is an enhanced version of the old .oid file. It can contain additional information to map enumerations and to extract indexes. This file contains the results of the output of the cell's mib2map tool. Do not attempt to create this file manually. |
SnmpGetIndexes | Bool (0-1 ) | Starts and stops index extraction, mainly for performance purposes By default, the indexes, such as the suffixed dotted numbers of the object identifiers (OIDs), are extracted and stored in the special $idxinput variable. $idx is a reference on a list of lists.
|
SnmpLocalAddr | IP address | Specifies which interface to use on a computer with two or more interface cards |
SnmpOIDFile | File name | Name of the file containing translations from SNMP OIDs to strings |
SnmpPort | Integer > 0 | Port of the UDP SNMP server |
SnmpTrapLength | Integer > 0 | Initial value of the buffer that receives SNMP traps |