The check_tungsten_online command checks whether all the services for a given service and host are online and running.
Within a Tungsten Cluster service, the replicator, manager and connector services are checked. All must be online for an OK response.
Table 9.15. check_tungsten_online Options
|Enable composite dataservice checks (default: disabled)|
|Debug mode (enables verbose mode also)|
|Display the help text|
|Check manager services on all nodes, not just localhost.|
|Disable replicator checks (default: enabled)|
|Specify the service you would like to check (default: all available services)|
By default, the script will check all manager and replication services for the localhost
Prior to v6.1.16, the default behavior was to check all nodes within a cluster
To also check the manager services on the other cluster nodes, use -a
You can also check the cluster-wide composite status using -c
Using -a or -c on multiple nodes will alert on all monitored nodes for the same offline service
The command outputs information in the following format:
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.
CRITICAL: Replicator is not running
WARNING — status requires attention. This indicates that one service within the system is not online.
OK — status is OK.
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.
check_tungsten_onlineOK: All services are online
If you have multiple services installed, use the
-s to specify the
check_tungsten_online -s alphaOK: All services are online