The check_tungsten_progress command determines whether the replicator is actually making progress by executing a heartbeat operation and monitoring for this operation to complete within an optional time period (default is 1 second).
Table 8.15. check_tungsten_progress Options
|Give a time period during which progress should be identified|
The command outputs information in the following format:
Where DETAIL includes detailed information about the status report, and LEVEL is:
CRITICAL — replicator is not making progress and either has not completed the heartbeat operation, or has failed. If failed, the reason will be shown in the DETAIL:
CRITICAL: Replicator is not ONLINE
OK — replicator is making progress.
OK: Replicator is making progress
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.
The time delay can be added on busy systems to ensure that the replicator is progressing; for example, to wait 15 seconds to ensure the replicator is progressing:
check_tungsten_progress -t 15CRITICAL: Replicator is not ONLINE