Configuring monitoring policies for newly discovered instances and attributes


When applying a filter to monitor instances or attributes within a specific context, newly discovered instances and attributes are monitored by default. To modify this behavior, you can establish a monitoring policy using Configuration Variables. This policy allows you to specify exclusion criteria for newly discovered instances and attributes at different levels: Environment, SAP SID, or SAP Context.

You can set values for these PATROL configuration variables as follows:

  • 1 to include new instances in monitoring.
  • 2 to exclude new instances from monitoring.

Environment level:
This setting applies to all SAP systems under the specified environment.

/SSM/SYSTEMS/<ENV_NAME_GIVEN_IN_POLICY>/DefaultDiscoveredObjects = { REPLACE = "2" }

Example:

/SSM/SYSTEMS/QAC_CCMS/DefaultDiscoveredObjects = { REPLACE = "2" }
In the above example, QAC_CCMS represents the environment (label) name given in the policy.

SAP SID level:
This setting applies to a specific SAP SID within the environment.

/SSM/SYSTEMS/<ENV_NAME_GIVEN_IN_POLICY>/<SAP_SID>/DefaultDiscoveredObjects = { REPLACE = "2" }
Example:

/SSM/SYSTEMS/QAC_CCMS/QAC/DefaultDiscoveredObjects = { REPLACE = "2" }
In the example above, QAC_CCMS is the environment (label) name, and QAC is the SAP SID.

For specific context:
To exclude specific contexts, perform the following steps:

  1. Use the PATROL Agent Query Tool to run the following command: print(get("/SSM_CONTEXT_CONT/instances"));
  2. Select the instance of which you want to exclude attributes, for example, 'QAC_CCMS!QAC!Java_Instance:_vwtlvincdv12_SM8_00'.
  3. Replace the exclamation mark '!' with a forward slash '/' to form the context name, e.g., 'QAC_CCMS/QAC/Java_Instance:_vwtlvincdv12_SM8_00'.
  4. Copy the context name to the following PATROL Config rule for <ENV_NAME_GIVEN_IN_POLICY>/<SAP_SID>/<CONTEXT_NAME>:
    /SSM/SYSTEMS/<ENV_NAME_GIVEN_IN_POLICY>/<SAP_SID>/<CONTEXT_NAME>/DefaultDiscoveredObjects = { REPLACE = "2" }
    Example:
    /SSM/SYSTEMS/QAC_CCMS/QAC/Java_Instance:_vwtlvincdv12_SM8_00/DefaultDiscoveredObjects = { REPLACE = "2" }
    In this example, QAC_CCMS represents the environment (label) name given in the policy, QAC is the SAP SID, and Java_Instance:_vwtlvincdv12_SM8_00 is the context name.

Additionally, make sure to apply the specified configuration variable to enable the next discovery cycle to process PATROL Configuration variables defined for exclusion criteria. This configuration is applicable across environment level, SAP SID Level, and specific context level.
"/SSM/SYSTEMS/FilterMonitorAttributes_txn_id" = { REPLACE = "1" }




 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*