Use case 7: Observe the running state of the defined threshold rules

This section describes the threshold use case to observe the running state of the defined threshold rules.

  1. To view the list of all the threshold rules that are defined for the system and their running state, run the following command:
    mmhealth thresholds list -v -Y |grep state
    The system displays output similar to the following:
    [root@gpfsgui-11 ~]# mmhealth thresholds list -v -Y |grep state
    mmhealth_thresholds:THRESHOLD_RULE:0:1::InodeCapUtil_Rule:state:active:
    mmhealth_thresholds:THRESHOLD_RULE:0:1::DataCapUtil_Rule:state:active:
    mmhealth_thresholds:THRESHOLD_RULE:0:1::MemFree_Rule:state:active:
    mmhealth_thresholds:THRESHOLD_RULE:0:1::SMBConnPerNode_Rule:state:inactive:
    mmhealth_thresholds:THRESHOLD_RULE:0:1::SMBConnTotal_Rule:state:inactive:
    mmhealth_thresholds:THRESHOLD_RULE:0:1::MetaDataCapUtil_Rule:state:active:
    Note: A threshold rule can be in one of the following states:
    Active
    A rule is running.
    Inactive
    A rule is not running. Either no keys for the defined metric measurement are found in the performance monitoring tool metadata or the corresponding sensor is not enabled. As soon as the metric keys and metric values are detected for a rule, the state of the rule switches to active.
    Unknown
    The state of a rule is not determined because of an issue with querying internal data.
  2. To check the state of the evaluation result for all the active or running threshold rules on each node, run the following command:
    mmhealth node show threshold -N all
    Note: No state is reported for inactive threshold rules.