Health Monitoring Utility

By using the health monitoring utility hmonlog.py, you can enable health monitor logging for aggregation node, correlation node, data node, query node, and webapp.

Enabling logging

Health monitor logging is disabled by default, and no results are returned for a search query that uses the following data models.
  • LogLogic_Monitor_Cpu
  • LogLogic_Monitor_Cpu_Load
  • LogLogic_Monitor_Diskspace
  • LogLogic_Monitor_Memory
  • LogLogic_Monitor_Node_Memory

By using the utility, you can enable it on the specified nodes by running the following command:

hmonlog.py [-h] [--action {enable | disable | status} ] [--nodes NODES]
The following table describes parameters for the hmonlog.py command.
Parameter Description
-h, -help Displays the help for the command and exits to the command prompt.
--action

{enable | disable | status}

Enables or disables the health monitor log.

status displays the status of the health monitor log.

--nodes Specifies that the command should be applied to the nodes listed in the NODES parameter.
NODES Specifies the list of nodes to which the command must be applied. By default, it applies to all nodes.

Enter a comma-separated list of nodes. For example: an, cn, dn, qn, web

After enabling or disabling logging for the webapp node, you must restart the lldaemon engine by running the following commands:

mtask -s engine_lldaemon restart
Note: After restarting engine_lldaemon, it might take some time for the GUI operations to be available.

Command examples

Command Description
python hmonlog.py --action enable --nodes all Enables the health monitoring log for all nodes.
python hmonlog.py --action enable --nodes cn, dn Enables the health monitoring log for correlation node and data node.

For an HA setup

If you are restarting the engine in an HA setup, you must restart the engine on both nodes, in the following sequence:
  1. Stop the engine on the standby and then on the master.
  2. Start the engine on the master and then on the standby.