Metrics with Key Value Settings
A metric with key value settings is one that can monitor multiple objects at different thresholds. For example, the Filesystem Space Available(%) metric can monitor different mount points using different warning and critical thresholds for each mount point.
When the template contains a metric that has key value settings, you can choose one of three options when applying this template to a target. As an example, consider the case where the template has the following metric:
Filesystem Space Available(%)
Mount Point | Operator | Warning Threshold | Critical Threshold |
---|---|---|---|
/ |
≤ |
40 |
20 |
/private |
≤ |
30 |
20 |
/private2 |
≤ |
20 |
20 |
/u1 |
≤ |
30 |
20 |
All Others |
≤ |
25 |
15 |
And a host target has the same metric at different settings:
Mount Point | Operator | Warning Threshold | Critical Threshold |
---|---|---|---|
/ |
≤ |
30 |
10 |
/private |
≤ |
25 |
15 |
/private2 |
≤ |
20 |
20 |
All Others |
≤ |
25 |
15 |
These are the results for each option:
1) All key value settings in the template will be applied to the target, any additional key values settings on the target will not be removed
When the template is applied to the target using this copy option, all the template settings for the mount points, /, /private, and /U1 will be applied. Existing target settings for mount points not covered by the template remain unaffected. Thus, the resulting settings on the target for this metric will be:
Mount Point | Operator | Warning Threshold | Critical Threshold |
---|---|---|---|
/ |
≤ |
40 |
20 |
/private |
≤ |
30 |
20 |
/u1 |
≤ |
30 |
20 |
2) All key value settings in the template will be applied to target, any additional key value settings on the target will be removed.
When the template is applied to the target using this copy option, all template settings will be applied to the target. Any object-specific threshold settings that exist only on the target will be removed, any object-specific thresholds that are only in the template will be added to the target. Thus, the final settings on the target will be:
Mount Point | Operator | Warning Threshold | Critical Threshold |
---|---|---|---|
/ |
≤ |
40 |
20 |
/private |
≤ |
30 |
20 |
/u1 |
≤ |
30 |
20 |
All Others |
≤ |
25 |
15 |
3) Only settings for key values common to both template and target will be applied to the target
When the template is applied to the target using this copy option, only the settings for the common mount points, / and /private will be applied. Thus, the resulting settings on the target for this metric will be:
Mount Point | Operator | Warning Threshold | Critical Threshold |
---|---|---|---|
/ |
≤ |
40 |
20 |
/private |
≤ |
30 |
20 |
/private2 |
≤ |
20 |
20 |
All Others |
≤ |
25 |
15 |