Status

Der Status -Unterbefehl wird verwendet, um zu prüfen, ob die Replikation noch synchron ist und wer der primäre ist:

/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

Typische Ausgabe auf dem primären Server (10.1.0.88 ist aktuell primär ):

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

Typische Ausgabe auf dem Standby- Server (10.1.0.88 ist aktuell primär ):

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