Parameter types for Event Adapters
The following table describes the parameters types available for use with the BMC Event Adapters.
Parameter types
Parameter type | Description |
---|---|
Global | Global parameters influence the global Perl process and must be defined in the default section of the configuration file. An example of a global parameter is |
Common | Common parameters are common to all adapters, but unlike global parameters, common parameters can be different for different adapter instances. An example of a common parameter is |
Specific | Specific parameters apply only to one specific type of adapter. They are generally defined in specific adapter sections; however, by using the |
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 If |
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. If ReadsPerEngine = 1 , records are read until the number of events created equals the value of the EventsPerPoll parameter. Otherwise, ReadsPerEngine equals the maximum reads per engine per poll cycle. |
TraceFile | File name | None | mcxa.trace | Name of the trace file If the name does not contain a path, the trace file is saved to the default trace file directory, installationDirectory\pw\server\tmp\Adapters. |
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:
Note
|
TraceSizeMax | Integer >= 0 | byte | 1,000,000 | Maximum trace file size Notes
|
TraceSizePeriod | Integer > 0 | none | 10 | Frequency, in number of messages logged, at which the adapter checks the size of the trace file. A trace file is archived when it exceeds the size specified with the TraceSizeMax parameter. |
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
|
MapFile | File name | Map file name The map file must be located in the installationDirectory\pw\server\etc directory. Full paths are not accepted. Default map name values depend on the adapter type. Default map names are listed in Default MAP files. |
MapFunctionsName | File name | Name of a Perl script or Perl module that contains user-defined functions to be used inside the .map file The use of this parameter is now deprecated. Use the REQUIRE directive, described in REQUIRE directive, from 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 |
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 Warning The BMC Event Log Adapter for Windows |
ELRecoveryIntervalMin | Recovery time interval, specified in minutes Unless ELResendAll is set to 1, an adapter processes events that arrived in the log for the time it was stopped. ELRecoveryIntervalMin prevents processing of old events if the adapter has been stopped for some time. That is, the adapter will process the events that are younger than ELRecoveryIntervalMin . Default: 1440 minutes (1 day) |
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 LogFile supports a single file name. Use several adapter instances to monitor several log files. |
LogFieldSeparator | Regex | None | \s+ | A regular expression, often a character such as " Note No syntactical analysis of the event occurs with this parameter, such as detecting a |
LogFlushPosPeriod | Integer > 0 | None | 10 | Number of events after which the log position is saved to disk Note Setting |
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 Note Specify 0 if you do not want to keep log files. |
LogMaxSize | Integer > 0 | Byte | 1,000,000 | Maximum size of log file, in bytes When the LogMaxSize value is reached, the log file is rotated. For more information, see the LogRotate parameter on Specific parameter. If LogRotate=0 , LogMaxSize is not used. |
LogProcessName | String | None | Empty | (UNIX only) name of the process receiving the kill-HUP command LogProcessName is not used if LogSupportKillHUP=0 . See LogSupportKillHUP on Specific parameters. |
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: 0 - Opens from the end 1 - Opens from the beginning |
LogRecordSeparator | Regex | None | \n | Regular expression, often a simple character or string, that delimits two events. Note If |
LogRegExpr | Regex | None | Empty | Contains a regular expression, in Perl 5 style, used to match an event The pattern variables $1, $2, and so on are saved in$<logVarPrefix>1 , $<logvarPrefix>2, and so on , and are declared in the INPUT_VARIABLES section of the .map file. $<logVarPrefix>0 contains the whole pattern. $complete contains the whole string between two LogRecordSeparator parameters. If the regular expression matches the whole string between two LogRecordSeparator parameters, both $complete and$<logVarprefix>0 , contain the whole event. If LogRegExpr is empty ( logRegExpr="" ),LogFieldSeparator is used instead. |
LogRegExprGlobal | Bool (0 - 1) | None | 1 | Indicates whether matching with the LogRegExpr parameter is performed globally Matching is global when you use the /g modifier of a Perl regular expression. In this case, the pattern is applied as many times as possible to the string. Each time the pattern matches, it is stored in $<logvarPrefix><n> variables, as explained in LogRegExpr on Specific parameters. For example, if LogRegExpr="\w+" and LogRegExprGlobal=1 , every word of the event is stored in $<logvarPrefix><n> variables ( n>=1 ). |
LogRememberPos | Bool (0 - 1) | None | 0 | Indicates whether the adapter persistently remembers the position of the last log entry
Note This information is stored in installationDirectory\pw\server\log\Adapters |
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 If a new log file is created, the old logfile is renamed or deleted, depending on the value of LogMaxCount . If the old log file is kept, it becomes <logfile>0[eventadapter90trial:.<ext>] , <logfile>0[eventadapter90trial:.<ext>] becomes <logfile>1[eventadapter90trial:.<ext>] ,... and <logfile><logMaxCount>[eventadapter90trial:.<ext>] is deleted if the value ofLogMaxCount is different from -1 . |
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. The prefix must be defined in the INPUT_VARIABLES section of the .map file. Alternatively, the notation$<logVarPrefix>0-i can be used to match any arbitrarily long list of patterns. |
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. Default: mcsnmptrapd.dat |
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
|
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 If the parameter value is a relative path, the file must be located in the installationDirectory\pw\server\etc directory. The use of SnmpOIDFile is now obsolete. Use the complete SnmpDatFile parameter instead. Default: mcsnmptrapd.oid |
SnmpPort | Integer > 0 | Port of the UDP SNMP server Default: 162 |
SnmpTrapLength | Integer > 0 | Initial value of the buffer that receives SNMP traps \ Default: 8192 Use the SnmpTrapLength parameter default setting. If you must modify it, be aware that an MC_ADAPTER_ERROR will occur if the SnmpTrapLength value is smaller than the actual size of the trap. |
Note
The cell SNMP Adapter does not respond to INFORM
messages that it may receive, but it does parse the SNMP message and generate an event.
Comments
Log in or register to comment.