The check_tungsten_latency Command
The check_tungsten_latency command reports warning or critical status information depending on whether the latency across the
nodes is above a specific level.
check_tungsten_latency [options]
| Option | Description | Version |
|---|---|---|
--perslave-perfdata | Show the latency performance information on a per-replica basis. | |
-c | Report a critical status if the latency is above this level. | |
-w | Report a warning status if the latency is above this level. |
The command outputs information in the following format:
LEVEL: DETAIL
Where DETAIL includes detailed information about the status report, and LEVEL is:
-
CRITICAL: latency on at least one node is above the specified threshold level for a critical report. The host reporting the high latency will be included in theDETAILportion:For example:
CRITICAL: host2=0.506s -
WARNING: latency on at least one node is above the specified threshold level for a warning report. The host reporting the high latency will be included in theDETAILportion:For example:
WARNING: host2=0.506s -
OK: status is OK; the highest reported latency will be included in the output.For example:
OK: All slaves are running normally (max_latency=0.506)
The -w and -c options must be specified on the command line, and the critical figure must be higher than
the warning figure. For example:
shell> check_tungsten_latency -w 0.1 -c 0.5
CRITICAL: host2=0.506s
Performance information can be included in the output to monitor the status. The format for the output is included in the
shell> check_tungsten_latency -w 1 -c 1 --perfdata
OK: All slaves are running normally (max_latency=0.506) | max_latency=0.506;1;1;;
Performance information for all the replicas in the cluster can be output by using the --perslave-perfdata option which must be used in conjunction
with the --perfdata option:
shell> check_tungsten_latency -w 0.2 -c 0.5 --perfdata --perslave-perfdata
CRITICAL: host2=0.506s | host1=0.0;0.2;0.5;; host2=0.506;0.2;0.5;;