Continuent Documentation

Search:
Page in Other Manuals

8.4. The check_tungsten_online Command

The check_tungsten_online command checks whether all the hosts in a given service are online and running.

Within a Tungsten Clustering service, the replicator, manager and connector services are checked. All must be online for an OK response.

Table 8.14. check_tungsten_online Options

OptionDescription
-hDisplay the help text
-portRMI port for the replicator being checked
-sCheck which hosts within a given service and online.

This command only needs to be run on one node within the service; the command returns the status 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 more than one service is not running.

    For example:

    CRITICAL: Replicator is not running
  • WARNING — status requires attention. This indicates that one service within the system is not online.

  • OK — status is OK.

    For example:

    OK: All services are online

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_online
OK: All services are online

If you have multiple services installed, use the -s to specify the service:

shell> check_tungsten_online -s alpha
OK: All services are online