Statut

La sous-commande status permet de vérifier si la réplication est toujours synchronisée et qui est le primaire :

/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

Sortie typique sur le server principal (10.1.0.88 est le serveur principal actuel) :

#  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)

Sortie typique sur le server de secours (10.1.0.88 est le serveur principal actuel) :

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