Status

The status sub-command is used to check if the replication is still in sync and who is the primary:

/opt/eranger/bin/eranger-server-replication.pl help status
Usage:
        /opt/eranger/bin/eranger-server-replication.pl status [outfile]

        # with optional argument outfile: to be used in crontab
        # exit status 0 if replication is ok
        #             1 if replication is down
        #             2 if replication is not configured
        #             3 for any other error

Typical output on the primary server (10.1.0.88 is current primary):

#  eranger-server-replication.pl status
10.1.0.88 
10.1.0.88 checking ssh for user reranger
# Tue Jan  9 13:21:04 2018
# Status is OK, if there is at least one slave, FAILED otherwise
# Legend: 'Slave: <seconds-last-read> (<ip>)'
# slaves: 1
Status: OK
Slave: 0 (10.1.0.89)

Typical output on the standby server (10.1.0.88 is current primary):

10.1.0.89 
10.1.0.89 checking ssh for user reranger
10.1.0.88 is running
Last read on master(10.1.0.88) 0 seconds ago