Skip to main content
Common Reference

The check_tungsten_policy Command

Applies to: Tungsten Clustering for MySQL

The check_tungsten_policy command checks whether the cluster policy is in AUTOMATIC mode or not.

Usage
check_tungsten_policy [options]
OptionDescriptionVersion
-hDisplay the help text.

This command only needs to be run on one node within the service; the command returns the policy mode for all nodes.

The command outputs information in the following format:

LEVEL: DETAIL

Where DETAIL includes detailed information about the status report, and LEVEL is:

  • CRITICAL : status is critical and requires immediate attention. This indicates that the policy is not AUTOMATIC.

    For example:

    CRITICAL: Policy is MAINTENANCE
  • WARNING : status requires attention. This indicates that one service within the system is not online.

  • OK : status is OK.

    For example:

    OK: Policy is AUTOMATIC

This output is easily parseable by various monitoring tools, including Nagios NRPE, and can be used to monitor the status of your services quickly without resorting to using the full trepctl output.

For example:

shell> check_tungsten_policy
OK: Policy is AUTOMATIC