diff --git a/doc/command-reference.sgml b/doc/command-reference.sgml
index 90679641..5ce831dd 100644
--- a/doc/command-reference.sgml
+++ b/doc/command-reference.sgml
@@ -259,20 +259,6 @@
-
-
- repmgr node rejoin
-
- repmgr node rejoin
-
- Enables a dormant (stopped) node to be rejoined to the replication cluster.
-
-
- This can optionally use pg_rewind to re-integrate a node which has diverged
- from the rest of the cluster, typically a failed primary.
-
-
-
@@ -302,6 +288,122 @@
+
+
+
+ repmgr node status
+
+ repmgr node status
+
+ Displays an overview of a node's basic information and replication
+ status. This command must be run on the local node.
+
+
+ Sample output (execute repmgr node status):
+
+ Node "node1":
+ PostgreSQL version: 10beta1
+ Total data size: 30 MB
+ Conninfo: host=node1 dbname=repmgr user=repmgr connect_timeout=2
+ Role: primary
+ WAL archiving: off
+ Archive command: (none)
+ Replication connections: 2 (of maximal 10)
+ Replication slots: 0 (of maximal 10)
+ Replication lag: n/a
+
+
+
+ See to diagnose issues.
+
+
+
+
+
+ repmgr node check
+
+ repmgr node check
+
+ Performs some health checks on a node from a replication perspective.
+ This command must be run on the local node.
+
+
+ Sample output (execute repmgr node check):
+
+ Node "node1":
+ Server role: OK (node is primary)
+ Replication lag: OK (N/A - node is primary)
+ WAL archiving: OK (0 pending files)
+ Downstream servers: OK (2 of 2 downstream nodes attached)
+ Replication slots: OK (node has no replication slots)
+
+
+
+ Additionally each check can be performed individually by supplying
+ an additional command line parameter, e.g.:
+
+ $ repmgr node check --role
+ OK (node is primary)
+
+
+
+ Parameters for individual checks are as follows:
+
+
+
+
+ --role: checks if the node has the expected role
+
+
+
+
+
+ --replication-lag: checks if the node is lagging by more than
+ replication_lag_warning or replication_lag_critical
+
+
+
+
+
+ --archive-ready: checks for WAL files which have not yet been archived
+
+
+
+
+
+ --downstream: checks that the expected downstream nodes are attached
+
+
+
+
+
+ --slots: checks there are no inactive replication slots
+
+
+
+
+
+
+ Individual checks can also be output in a Nagios-compatible format by additionally
+ providing the option --nagios.
+
+
+
+
+
+ repmgr node rejoin
+
+ repmgr node rejoin
+
+ Enables a dormant (stopped) node to be rejoined to the replication cluster.
+
+
+ This can optionally use pg_rewind to re-integrate a node which has diverged
+ from the rest of the cluster, typically a failed primary.
+
+
+
+
repmgr cluster show