Skip to main content

Configure the SCOM LAM

The SCOM LAM receives and processes SCOM events forwarded to Moogsoft Enterprise. The LAM parses the data into Moogsoft Enterprise events.

You can install a basic SCOM integration in the UI. See Microsoft SCOM for integration steps.

Configure the SCOM LAM if you want to configure custom properties, set up high availability or configure advanced options that are not available in the UI integration.

Before You Begin

The SCOM LAM has been validated with SCOM 2012, SCOM 2016, and SCOM 2019. Before you configure the LAM, ensure you have met the following requirements:

  • You have enabled Internet Information Services 6.0 or later to view the Status GUI.

  • You have Administrator privileges to the SCOM server.

  • You have uninstalled any versions of the SCOM Connector you had previously installed.

  • You have opened a port for the SCOM Connector to receive connections from Moogsoft Enterprise. You use this port to configure the Connector URL. The default is 8085.

  • If communications between the SCOM Server and Moogsoft Enterprise the server must pass through a proxy, ensure you know the proxy details including IP address, port, and required user credentials.

If you are configuring a distributed deployment refer to Configure SCOM for HA first. You will need the details of the server configuration you are going to use for HA.

Configure the LAM

Edit the configuration file to control the behavior of the SCOM LAM.You can find the file at $MOOGSOFT_HOME/config/scom_lam.conf.

The SCOM LAM is a REST-based LAM as it provides an HTTP endpoint for data ingestion. Note that only the REST LAM properties in scom_lam.conf apply to integrating with SCOM; see the LAM and Integration Reference for a full description of all properties.

Some properties in the file are commented out by default; remove the '#' character to enable them.

  1. Configure the connection properties:

    • address: Address on the Moogsoft Enterprise server that listens for messages. Defaults to all interfaces.

    • port: Port on the Moogsoft Enterprise server that listens for messages. Defaults to 8888.

  2. Configure authentication:

    • authentication_type: Type of authentication used by the LAM. Defaults to none.

    • authentication_cache: Whether to cache the username and password for the current connection when the authentication type is Basic.

  3. Configure the LAM behavior:

    • accept_all_json: Allows the LAM to read and process all forms of JSON.

    • lists_contain_multiple_events: Whether Moogsoft Enterprise interprets a JSON list as multiple events.

    • num_threads:Number of worker threads to use for processing events.

    • rest_response_mode: When to send a REST response. See the LAM and Integration Reference for the options.LAM and Integration Reference

    • rpc_response_timeout: Number of seconds to wait for a REST response.

    • event_ack_mode: When Moogfarmd acknowledges events from the SCOM LAM during the event processing pipeline.

  4. Configure the SSL properties if you want to encrypt communications between the LAM and the REST connection:

    • use_ssl: Whether to use SSL certification.

    • path_to_ssl_files: Path to the directory that contains the SSL certificates.

    • ssl_key_filename: The SSL server key file.

    • ssl_cert_filename: The SSL root CA file.

    • use_client_certificates: Whether to use SSL client certification.

    • client_ca_filename: The SSL client CA file.

    • auth_token or encrypted_auth_token: Authentication token in the request body.

    • ssl_protocols: Sets the allowed SSL protocols.

  5. Optionally configure the LAM identification and capture logging details:

    • name: Maps to $Laminstancename, so that the agent field indicates events Moogsoft Enterprise ingests from this LAM.

    • capture_log: Name and location of the LAM's capture log file, which it writes to for debugging purposes.

  6. Optionally configure severity conversions. See Severity Reference for further information and "Conversion Rules" in Tokenize Source Event Data for details on conversions in general.

  7. Optionally configure the process logging details:

    • configuration_file: Name and location of the LAM's process log configuration file. See Configure Logging for more information.Configure Logging

Example

An example SCOM LAM configuration is as follows:

monitor:
{
    name                          : "SCOM LAM",
    class                         : "CRestMonitor",
    port                          : 8888,
    address                       : "0.0.0.0",
    use_ssl                       : false,
    #path_to_ssl_files            : "config",
    #ssl_key_filename             : "server.key",
    #ssl_cert_filename            : "server.pem",
    #use_client_certificates      : false,
    #client_ca_filename           : "ca.crt",
    #auth_token                   : "my_secret",
    #encrypted_auth_token         : "dfJtTQMGiFHfiq7sCmxguBt6Jv+eytkoiKCquSB/7iWxpgGsG2aez3z2j7SuBtKj",
    #ssl_protocols                : [ "TLSv1.2" ],
    authentication_type           : "basic_auth_static",
    basic_auth_static:
    {
        username: "user",
        password: "pass"
        #, encrypted_password    : "dfJtTQMGiFHfiq7sCmxguBt6Jv+eytkoiKCquSB/7iWxpgGsG2aez3z2j7SuBtKj"
    },
    authentication_cache          : true,
    accept_all_json               : true,
    lists_contain_multiple_events : true,
    num_threads                   : 5,
    rest_response_mode            : "on_receipt",
    rpc_response_timeout          : 20,
    event_ack_mode                : "queued_for_processing"
},
agent:
{
    name                          : "SCOM",
    capture_log                   : "$MOOGSOFT_HOME/log/data-capture/scom_lam.log"
},
log_config:
{
     configuration_file           : "$MOOGSOFT_HOME/config/logging/scom_log.json"
{,

Configure for High Availability

Configure the SCOM LAM for high availability if required. See Configure SCOM for HA for details.

Confgure LAMbot processing

The SCOM LAMbot processes and filters events before sending them to the Message Bus. You can customize or bypass this processing if required.

See LAMbot Configuration for more information. An example SCOM LAM filter configuration is shown below.

filter:
{
    presend: "ScomLam.js",
    modules: [ "CommonUtils.js" ]
}

Start and Stop the LAM

Restart the SCOM LAM to activate any changes you make to the configuration file or LAMbot.

The LAM service name is scomlamd.

See Control Moogsoft Enterprise Processes for the commands to start, stop and restart the LAM.

You can use a GET request to check the status of the SCOM LAM. See "Check the LAM Status" in Configure the REST LAM for further information and examples.

Configure SCOM

After you have the SCOM LAM running and listening for incoming requests, you can configure the SCOM Connector. See Microsoft SCOM and Configure the SCOM Connector for more information and examples.