Creating and configuring custom monitors using PCM
This section describes how to create and configure custom monitors using PATROL Configuration Manager (PCM).
If you do not want to use native monitors to monitor the network devices, you can create and configure custom monitors using PCM.
The rule set file, CustomMonitor.cfg for creating and configuring custom monitor is located at $PATROL_HOME\..\pconfmgr\rulesets\Shipped\PSM\km_version_number\CustomMonitorCreation.
You can configure the custom monitor using the following template:
"/PSM/txn_id" = { REPLACE = "1"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/MonitorName" = { REPLACE = "<<MonitorName>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/MonitorCategory" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/Counters/<<CounterName>>/CounterName" = { REPLACE = "<<CounterName>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/Counters/<<CounterName>>/OidFormula" = { REPLACE = "<<.1.3.6.1.2.1.6.14.0>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/Counters/<<CounterName>>/Unit" = { REPLACE = "<<Use Units.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/Counters/<<CounterName>>/CustomUnit" = { REPLACE = "<<delete=12,error=other>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/Counters/<<CounterName>>/MeasureAS" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/Counters/<<CounterName>>/Scale" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/Counters/<<CounterName>>/Availability" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/Counters/<<CounterName>>/Delta" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/Counters/<<CounterName>>/GraphByDefault" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/Counters/<<CounterName>>/KPI" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/Counters/<<CounterName>>/ResponseTime" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/Counters/<<CounterName>>/Statistical" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/Name" = { REPLACE = "<<ObjectTypeName>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/DiscoveryKey" = { REPLACE = "<<.1.3.6.1.2.1.6.13.1.2,.1.3.6.1.2.1.6.13.1.3>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/ObjectCounters/<<CounterName>>/CounterName" = { REPLACE = "<<CounterName>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/ObjectCounters/<<CounterName>>/OidFormula" = { REPLACE = "<<.1.3.6.1.2.1.6.13.1.1>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/ObjectCounters/<<CounterName>>/Unit" = { REPLACE = "<<Use Units.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/ObjectCounters/<<CounterName>>/CustomUnit" = { REPLACE = "<<delete=12,error=other>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/ObjectCounters/<<CounterName>>/MeasureAS" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/ObjectCounters/<<CounterName>>/Scale" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/ObjectCounters/<<CounterName>>/Availability" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/ObjectCounters/<<CounterName>>/Delta" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/ObjectCounters/<<CounterName>>/GraphByDefault" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/ObjectCounters/<<CounterName>>/KPI" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/ObjectCounters/<<CounterName>>/ResponseTime" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"},
"/PSM/PSM_Custom/CustomMonitors/<<MonitorName>>/ObjectTypes/<<ObjectTypeName>>/ObjectCounters/<<CounterName>>/Statistical" = { REPLACE = "<<Use Readme.txt file for Entry settings>>"}
Creating and configuring custom monitors using PCM menu commands
The following procedure explains how to use the PATROL Configuration Manager menu commands to create and configure custom monitor.
- In PATROL Configuration Manager, locate Shipped > PSM > km_version_number > CustomMonitorCreation.
- Right click the rule and select Edit Rule.
The RuleSet dialog box is displayed. - In the Operation column, select the REPLACE option, which is the default value.
Double-click the highlighted space in the Value column and enter the value of the variable.
For information about the description and values of the variables, see Configuration variables.
- Click OK.
- Repeat the above steps for all the rules.
- After adding values to the variables for creating a custom monitor, drag the new RuleSet onto the agentHostName in the left pane.
- Click the Apply Configuration icon in the PATROL Configuration Manager menu bar.
For more information about adding a variable or RuleSet by using PATROL Configuration Manager, see the PATROL Configuration Manager User Guide.
Configuring using the PATROL Configuration Manager CLI
The PATROL Configuration Manager CLI processes a script file that contains commands regarding RuleSets.
To perform BMC PATROL for Light Weight Protocols configuration using the PATROL Configuration Manager RuleSets, you must set values for the configuration variables in the .cfg files. After you provide values in the files for configuring custom monitor (CustomMonitor.cfg), you can apply the configuration to the PATROL Agent using the PATROL Configuration Manager CLI. For a list of configuration variables that you can include in the .cfg file, see Configuration variables.
Store your .cfg files in any directory under the %BMC_ROOT%/pconfmgr/rulesets directory, and use the following command to apply the RuleSets:
- (Windows) pcm.cmd -f scriptFileName
- (UNIX) pcm.sh -f scriptFileName
The scriptFileName variable represents the script file that contains commands to be executed for applying RuleSets. For example, to apply RuleSets for the creating and configure custom monitor, enter the following command in the script file:
apply -a agentName CustomMonitor
The CustomMonitor variable represents the name of the RuleSets file.
For more information about the commands and options that can be used in a script file, see the PATROL Configuration Manager User Guide and Configuration variables.
Configuration variables for custom monitor configuration
The following table provides information about the configuration variables for creating and configuring custom monitors. You can use PATROL Configuration Manager to add values to the configuration variable for configuring custom monitors. For more information about how to add values to the custom monitor, see Configure-using-PATROL-Configuration-Manager.
Variable | Description | Operation | Value |
---|---|---|---|
Custom monitor creation | |||
/PSM/txn_id | Activates the custom monitor configuration. | Replace | 1 |
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/MonitorName | Name of the custom monitor. | Replace | Manual |
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/MonitorCategory | Monitor category based on the MIB file definition. | Replace |
|
Monitor counter details | |||
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/CounterName | Monitor counter name. | Replace | Manual
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/OidFormula | Monitor counter OID or formula to poll. | Replace | Manual |
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/Unit | Monitor counter unit. If this pre-defined rule set does not serves the counter unit, then you can remove this rule set to provide the required unit in the /PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/CustomUnit rule set. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/CustomUnit | This rule set can be used if the predefined rule set, /PSM/PSM_Custom/CustomMonitors/ <<MonitorName>> /Counters/ <<CounterName>>/Unit cannot serve as the counter unit. | Replace | Manual |
Monitor counter calculation | |||
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/MeasureAS | Select how to measure the counter. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/Scale | Number to scale on the counter. | Replace | Manual |
Monitor counter metadata | |||
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/Availability | Availability counter type. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/Delta | Delta counter type. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/GraphByDefault | Attribute for default display. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/KPI | Key Performance Indicator attribute of the monitor. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/ResponseTime | Response time counter type. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/Statistical | Statistical counter type. | Replace |
|
Monitor object type | |||
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/Name | Monitor object type name. | Replace | Manual |
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/DiscoveryKey | Monitor object type discovery key. Multi OIDs must be comma-separated. | Replace | Manual |
Monitor object type counter details | |||
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/CounterName | Monitor object type counter name. | Replace | |
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/OidFormula | Monitor object type counter OID or formula to poll. | Replace | Manual |
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/Unit | Monitor counter unit. If this pre-defined rule set does not serves the counter unit, then you can remove this rule set to provide the required unit in the /PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/Counters/ <<CounterName>>/CustomUnit rule set. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/CustomUnit | This rule set can be used if the predefined rule set, /PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/Unit cannot serve as the counter unit. | Replace | Manual |
Monitor object type counter calculation | |||
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/MeasureAS | Select how to measure the counter. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/Scale | A number to scale on the counter value. | Replace | Manual |
Monitor object type counter metadata | |||
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/Availability | Availability counter type. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/Delta | Delta counter type. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/GraphByDefault | Attribute for default display. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/KPI | Key Performance Indicator attribute of the monitor. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/ResponseTime | Response time counter type. | Replace |
|
/PSM/PSM_Custom/CustomMonitors/ <<MonitorName>>/ObjectTypes/ <<ObjectTypeName>>/ObjectCounters/ <<CounterName>>/Statistical | Statistical counter type. | Replace |
|