Monitoring health and events with mmhealth commands

You can use the mmhealth commands to monitor the health and events of LROC devices.

The following mmhealth commands can be used to display the events and health status of all monitored LROC components in the cluster.

Use the following command to display the status of LROC:
# mmhealth node show localcache
Node name:      nodexyz.example.net
Component      Status        Status Change     Reasons
------------------------------------------------------------------------------------
LOCALCACHE     TIPS          4 days ago        lroc_set_buffer_desc_tip
  lroc_1       HEALTHY       6 days ago        -
  lroc_2       HEALTHY       6 days ago        -
Event            Parameter   Severity  Active Since  Event Message
-------------------------------------------------------------------------------------------------------------------------------
lroc_set_buffer  LOCALCACHE  TIP       4 days ago    This node has LROC devices with a total capacity of 12345 GB.
_desc_tip                                            Optimal LROC performance requires setting the maxBufferDescs config option. 
                                                     The value of desired buffer descriptors for this node is '12345'
                                                     based on assumed 4 MB data block size.

There are no active error events for the LOCALCACHE component on this node (nodexyz.example.net).

Use the following command to display the status of LROC by using --verbose:
# mmhealth node show localcache -v
Node name:      nodexyz.example.net
Component      Status        Status Change            Reasons
-------------------------------------------------------------------------------------------
LOCALCACHE     TIPS          2021-03-19 10:17:16      lroc_set_buffer_desc_tip
  lroc_1       HEALTHY       2021-03-17 10:20:13      -
  lroc_2       HEALTHY       2021-03-17 10:43:43      -
Event                      Parameter    Severity  Active Since          Event Message
--------------------------------------------------------------------------------------------------------------------------------------------------
lroc_daemon_running        LOCALCACHE   INFO      2021-03-17 10:20:12   lroc is normal
lroc_set_buffer_desc_tip   LOCALCACHE   TIP       2021-03-19 10:17:15   This node has LROC devices with a total capacity of 12345 GB.
                                                                        Optimal LROC performance requires setting the maxBufferDescs config option.
                                                                        The value of desired buffer descriptors for this node is '12345' based 
                                                                        on assumed 4 MB data block size.
lroc_disk_normal           lroc_1       INFO      2021-03-17 10:20:12   lroc lroc_1 device is normal
lroc_disk_normal           lroc_2       INFO      2021-03-17 10:43:43   lroc lroc_2 device is normal
Use the following command to display the health status of all monitored LROC components in the cluster:
# mmhealth cluster show localcache
Component      Node                                Status            Reasons
------------------------------------------------------------------------------------------
LOCALCACHE     nodexyz.example.net                 TIPS              lroc_set_buffer_desc_tip
Use the following command to display the health status of all monitored LROC components in the cluster by using --verbose:
# mmhealth cluster show localcache --verbose
Component      Node                                Status            Reasons
------------------------------------------------------------------------------------------
LOCALCACHE     nodexyz.example.net                 TIPS          lroc_set_buffer_desc_tip
  lroc_1                                           HEALTHY       -
  lroc_2                                           HEALTHY       -