While application discovery tests the existence and general status of a monitored object, a PATROL parameter audits its operational and performance details. Parameters are the basic unit of PATROL KM monitoring. This section reviews parameter concepts as they apply to PATROL KM development.
The term, PATROL parameter, has a special meaning, a PATROL parameter is a procedure (command script) that periodically is executed by the PATROL Agent to obtain and process data about a particular aspect of a monitored object. Parameters can be created to audit any quantifiable attribute, aspect, or metric of an application class or computer class. Parameter data is collected, summarized, and stored on the computer running the PATROL Agent. Parameter data can be accessed by a PATROL Console or an SNMP console.
You can create parameters and assign them to one of the following:
Parameter command scripts are read and loaded by the PATROL Agent during agent initialization. If they are part of pre-loaded PATROL KMs, parameter execution scheduling begins immediately according to each parameter's scheduling method and settings. The PATROL Agent scheduler maintains the execution schedule for the parameters in the run queue. The scheduler executes each parameter as close to its poll time as possible, while maintaining a manageable system load.
Parameter information and history is stored on the PATROL Agent. When a user "opens" a parameter to view its values, the data is fetched from the agent.
In the PATROL product, there are three basic parameter types - standard, collector, and consumer - and two additional variants of the standard parameter type. Parameter types differ in the way that they gather and display data.
The following table shows the characteristics of each parameter type and compares them.
Parameter types and usage
Parameter type | Definition | Usage | Supported language | Scheduled Exec. | Display values | Has alerts | Recovery actions | Direct update | Runs commands |
---|---|---|---|---|---|---|---|---|---|
Collector | Executes commands to gather multiple data values for consumer parameters to display. | To gather data in one execution for multiple parameters to display.This simplifies PATROL KM design and improves performance. | Any | - | - | - | - | - | - |
Consumer | Displays data gathered by a collector or a standard parameter; has alerts, and runs recovery actions. | To divide collector data into specific metrics; each with its own:
| NA | - | - | - | - | - | - |
Standard parameter types | |||||||||
Standard | Executes commands to gather a single value that it displays; has alerts and runs recovery actions. | To script data gathering commands in any available command language. | Any | - | - | - | - | - | - |
Standard with consumer properties | Executes commands to check conditions monitored by a collector before gathering its data and displaying results for both the collector and itself. | To set up a metric that:
| Any | - | - | - | - | - | - |
Standard with collector properties | Executes commands to gather data for both consumer parameters and for itself. Has multiple consumers with separate alerts and recovery actions. | To set up a complex metric that:
| PSL | - | - | - | - | - | - |
As summarized in the following table, the PATROL product offers six basic styles to display parameter data.
Parameter display style summary
Display style | Description | Usage | Supported data types | Display output in PATROL console | Retain history | Indicate alerts | Has recovery actions | Self-terminating |
---|---|---|---|---|---|---|---|---|
No output (no icon) | Displays no parameter values in PATROL Console | Use to do these things:
| Object state | - | - | - | - | - |
Boolean state | Displays a metric that has a Boolean value. | Use to display a metric that can only have two values, typically indicating the parameter's current state and its change over time. | Boolean | - | - | - | - | - |
Gauge | Displays metric value at a point-in-time | Use to display a metric whose:
| Numeric | - | - | - | - | - |
Easily interpreted by users
Graph | Displays metric changes over time and allows users to modify graphs with the Charting Server tool. | Numeric | Use to display a metric whose:
| - | - | - | - | - |
Display style required for the PATROL "annotated datapoints" feature.|
Stoplight | Displays current metric alert status. Opening the parameter displays its change in value over time | Numeric | Use to display both the current metric alert status and its trend over time. | - | - | - | - | - |
Text | Displays textual output of metric | Text strings or formatted textual data | Use to display a metric that returns textual information such as:
| - | - | - | - | - |
Textual data cannot be used to trigger warnings and alarms.|
A PATROL parameter can have various states to indicate its condition. The following figure depicts the standard state model for PATROL parameters. The parameter icons are shown as they appear on the PATROL Console for Windows and UNIX.
Parameter state model, Windows and UNIX
Parameter states, Windows and UNIX
State | Event or action | Appearance | Trigger |
---|---|---|---|
Offline | Parameter is not being monitored | Icon on grey platter (Windows) Icon on grey platter(UNIX) | There are two possible causes:
|
Deactivated | Parameter deactivated | No icon | There are two possible causes:
|
OK | Parameter's current value is in normal range | Icon on white platter | Parameter is operating within normal ranges as implicitly defined in its properties. |
Filtered | User exclusion action | No icon | User explicitly excludes the parameter from monitoring. |
Warning | Parameter 's current value is in warning range | Square yellow base (Windows) | Parameter enters warning state as defined in its properties. |
Alarm | Parameter's current value is in alarm range | Square, flashing, red/yellow base (Windows) | Parameter enters alarm state as defined in its properties. |
Suspended | User temporarily suspends parameter execution | Icon on white base with red "S" indicator (Windows) | User suspends parameter execution. |
The PATROL product implements a basic four-state paradigm - VOID, OK, WARN, ALARM. However, the PATROL product provides a settleable icon and label built-in substitution macro variable for icons that which allows you to visually simulate any number of object states. You can change object icon color, change its label, or completely change the icon's appearance to indicate the detected object state.
Scheduling controls how frequently the parameter is executed. Because scheduling determines the amount of data a parameter produces, the end-user may need to change parameter scheduling as part of tuning the PATROL KM in his or her environment.
The PATROL product offers two methods to schedule parameter execution:
The following table describes the available parameter scheduling methods and their usage.
Parameter scheduling summary
Scheduling method | Parameter types | Usage/setup | Comments | |
---|---|---|---|---|
Periodic | Regularly scheduled intervals |
| Use to start parameter at a specific time and rerun it at regular intervals | This is the most common type of parameter scheduling in which the parameter |
Event driven |
| |||
With OS commands |
| For ease of development, use existing OS task scripts in parameter commands. | PATROL Agent spawns a subprocess that returns parameter data. | |
With PSL commands | Collector | Use to build a standard parameter with collector properties. | PATROL Agent executes the parameter command script without spawning a subprocess. |
For each PATROL Standard and Consumer parameter, you can use three options to set up and define the values of parameter warnings and alarms. Because the Border, Alarm1, and Alarm2 options work together to provide monitoring coverage, you can configure them in several different ways to meet your monitoring needs. Not only do warnings, alarms, and border actions provide monitoring, they also are the triggers for parameter recovery actions.
Use the Range Limits option to delineate the entire spectrum of possible parameter values. The Range Limit that you define controls the maximum and minimum values possible for the Alarm1, Alarm2, and Border options.
Use the Alarm1 and Alarm2 options to define the range of parameter values that trigger warnings and alarms. You can set either option as the warning range or the alarm range, but the Alarm1 range must always have lower values than the Alarm2 range.
If you wish an alarm to occur when the parameter's value is low, set Alarm1 as the alarm range and Alarm2 as the warning range. If you wish an alarm to occur when the parameter's value is high, set up Alarm2 as the alarm range and Alarm1 as the warning range.
Use the Border option to do the following:
If it i s possible for a parameter to have extreme values that lie near the ends of the range limits, use the Border option to define the range of values that a parameter might have under abnormal conditions. In addition, you can also set up a recovery action associated with a warning or alarm triggered by a border condition. Alternatively, you can use the Border option to set up a third-level parameter alarm or warning range.
Set up alarm, warning, and border ranges so that the ranges provide complete monitoring coverage. Internal to the PATROL product, numeric values are floating point. If you set your warning range from 80 to 90 and your alarm range from 91 to 100, a value of 90.4 would evaluate to be "OK" and would trigger no alarm or warning.
To avoid this situation, you can do one of the following:
Use the following table to aid in choosing the appropriate parameter alarm setup.
Setting parameter alarm ranges
Action | Set Alarm1 | Set Alarm2 | Set Alarm3 |
---|---|---|---|
To set a parameter to alarm when a low value occurs | ALARM | WARNING | - |
To set a parameter to alarm when a high value occurs | WARNING | ALARM | - |
To set a parameter to alarm twice at two separate high values | WARNING | ALARM | ALARM |
To set a parameter to alarm twice at two separate low values | ALARM | ALARM | WARNING |
Consider the following things when setting up parameter alarm ranges:
The PATROL product provides the ability to define automatic recovery actions to correct problems indicated by a parameter's alarm, warning, or border alarms or to take other appropriate actions based on the parameter's value. When a parameter changes state, one or more recovery action command scripts can be queued for execution, each according to its properties settings.
Recovery actions can be set up to execute by increasing strength of action. In addition, you can create recovery actions that determine the corrective action to take based on other parameter values or data available in the PATROL Agent namespace. Recovery actions offer a powerful management tool.
Parameter recovery actions are executed according to the polling cycle of its parameter, with one recovery action executed per polling cycle. If a parameter has more than one recovery action defined for an alarm condition, the next recovery action executes on the next parameter execution if the parameter remains in the same alarm state. Subsequent recovery actions execute consecutively until the alarm clears or no recovery actions remain.