This topic describes how to extend the IBM Director Resource Monitor Server with threshold templates.
The IBM Director Resource Monitor Server supports the concept of threshold templates. A threshold template can be used to supply default threshold values to users when they create a new threshold for a given monitor attribute based on the requesting Monitor Console's locale. If the requested locale cannot be loaded, then the best available locale will be used. If the threshold template files do not exist, then the system defaults will be used.
A Monitor extension can have server defined properties. This "property" file resides
in the \Program Files\IBM\Director\data
subdirectory and has the filename format of:
<monitor extension filename>.properties
One of the available properties allows the Monitor extension provider a way to provide threshold templates for their monitorable attributes. An example of such a file can be found in the Monitor Agent sample code: samples\monagent\com\monsdk.properties
A threshold template can be used to supply default threshold values to users
when they create a new threshold for a given monitor attribute and can be
created by the Monitor Extension provider, by a reseller or by a
local system administrator.
These "template" file(s) must reside in the \Program Files\IBM\Director\classes
subdirectory or in another directory that is specified in the CLASSPATH
for
the IBM Director Server.
When a user creates a new threshold for a monitor attribute the server will attempt to load the specified threshold template and preset the threshold values.
Examples of English-US template files can be found in the Monitor Agent sample code: samples\javasrc\com\BobCo\monagent\monsdk_thresh_month_en_US.properties samples\javasrc\com\BobCo\monagent\monsdk_thresh_weekday_en_US.properties