Updating custom KMs
This section provides detailed steps to make your custom Knowledge Modules (KMs) compliant to BMC ProactiveNet Performance Management or TrueSight Infrastructure Management.
Before you begin
Ensure that you have upgraded your Classic Console to version 3.6.00.01 of BMC PATROL Console for Windows.
To update a custom KM
- Update all KM files with release and revision number. For details, see KM-directives.
- Update all the Knowledge Module List of files with meta data information. For details, see Creating a Knowledge Module List.
- Open the PATROL Console in the Developer mode, and load your custom KM.
- For all applicable Application Classes:
- Click the KM tab.
- Expand Application Classes to view all the loaded application classes.
- Right-click on the application class name and click on Properties.
- Click the Metadata tab.
Ensure you provide all the following details:
Items
Description
Sample
Display Name
The name of the instance as displayed on the BMC ProactiveNet Performance Management Operations console or TrueSight Infrastructure Management administrator console.
NT_OS application class is named Windows Operating System.
Monitor Type
This defines the behavior of the application class.
MONITOR, CONTAINER, etc.
Monitor Category
BMC ProactiveNet Performance Management or TrueSight Infrastructure Management uses the Monitor category specification for categorization.
System, Database, Application, etc.
CDM Class Name
The name of the CDM (Common Data Model) class that corresponds to an application class.
BMC_FileSystem, BMC_ComputerSystem, etc.
Config Variables
Additional configuration parameters for an instance.
osType, osVersion, etc.
For additional details, refer Static and Dynamic Metadata.- To enable Monitoring Policy configuration, add configuration metadata in the Input tab. For example, see Example-of-input-tab-details-for-an-Application-Class.
- Save the KM.
- For all applicable Parameters:
- Click the KM tab in the PATROL Console in Developer mode.
- Expand Application Classes to view all the loaded application classes.
- Expand an application class to view all Global and Local entries.
- Expand the Global > Parameters to view all parameters in the application class.
- Right-click on the parameter name and click on Properties.
- Click the Metadata tab.
- Select all the applicable metadata options. For details, refer Static metadata.
- Save the KM.
- For all applicable Menu commands:
- Click the KM tab in the PATROL Console in Developer mode.
- Expand Application Classes to view all the loaded application classes.
- Expand an application class to view all Global and Local entries.
- Expand the Global > Commands.
Expand Menu Commands to view all menu commands for an application class.
Right-click on the menu command and click on Properties.
- In the General tab, perform the following to generate the ID:
- For auto-generated ID:
- Select the Generate Auto ID option and click Yes.
The auto generated id is displayed in the ID field and a function with the same name is created in the Command text. - Click the Command tab.
- Write the logic of the menu in the Command text.
Click Apply.
- If you want to have inputs taken from a user through the BMC ProactiveNet Performance Management Operations console or TrueSight Infrastructure Management administrator console, write the input metadata in the Input tab. For example, see Example-of-input-tab-details-for-a-Menu-command.
Ensure that Annotate option is not checked for input to work.
- Select the Generate Auto ID option and click Yes.
- For manually generated ID:
- Select the Generate Auto ID option and click Yes. Now, deselect the the Generate Auto ID option to add Menu ID manually.
- Enter Menu ID.
Create a PSL library with naming convention as "<KMName>_<Menu ID>.lib" and export the PSL function with same name as Menu ID.
- Click the Command tab.
- Write the logic of the menu in the Command text to be executed by PATROL Console.
- For auto-generated ID:
- Click Apply.
- From the TrueSight console, if you want to execute a menu command automatically on the ALARM state:
- Select the Annotate option in the General tab. Ensure that no inputs are used for the menu command.
- Click Apply.
- The menu command will appear in the Event Rules list on the BPPM server.
- Associate this event rule to an event trigger. In this case the ALARM state trigger.
- Save the KM.
- Create a bundle with the newly created <ApplicationClassName>.xml file, menu command library files, and the XSD shipped with PATROL Console.
- Newly created .xml, and .km files (for example: ntos.xml, ntos.km) will be saved under PATROL cache directory c:\users\user name\patrol\knowledge. Copy these files from here to PATROL_HOME\lib\knowledge directory
Integrating with TrueSight Capacity Optimization
When integrating custom KMs with TrueSight Capacity Optimization, make the following changes:
- Designate the EntityType parameter as configVariable in the KM application class XML.
The EntityType configVariable is required to set all instances that convert to devices. - Use the PSL script to set EntityType values per instance.
To import custom monitor types and set thresholds on the TrueSight console
Do the following:
- Log on to the PATROL Agent host computer on which the custom monitor types are created.
- Create the following folder structure.
%PATROL_HOME%\..\Uninstall\tools\pcig\Patrol3\lib\knowledge - Copy the custom monitor types from %PATROL_HOME%\lib\knowledge and paste them to the folder that you have created.
Open the command prompt and go to the pcig folder (%PATROL_HOME%\..\Uninstall\tools\pcig), and enter the following command to create a package to import it to the TrueSight console:
#Syntax
pcig -p product -r release -s source_path [-l os_list] [-t title] [-c]
#Example
pcig-64.exe -p zxc -s Patrol3 -r 2018.15.6 -t “ZXC Custom Monitor types”- Log on to the TrueSight console and go to Administration > Repository.
- Select Installation component, click Import and select Single solution.
- Click Browse to select the newly created package from the pcig folder and click Import.
- Once the package is imported, go to Configuration > Infrastructure Policies.
- Select Server Threshold and click Add Server Threshold to set server threshold of the custom monitor types.
- Select Monitoring Solution as your server and select the newly created package version from the list.
In the Monitor type list, you can see all the custom monitor types that are imported. You can see the attributes of the selected monitor type. - Set the threshold values for the required attributes and save the policy.