Update status.inc
This commit is contained in:
@@ -509,6 +509,7 @@ STATUS(){
|
|||||||
echo "$(date) - ${nip} - ${NM_HOSTNAMES[${nip}]}[${nip}] - (${NM_REPL_DESC[${rcheck}]}) Replicated folder timeout, it is not syncing" >> ${NM_LOGFILE}
|
echo "$(date) - ${nip} - ${NM_HOSTNAMES[${nip}]}[${nip}] - (${NM_REPL_DESC[${rcheck}]}) Replicated folder timeout, it is not syncing" >> ${NM_LOGFILE}
|
||||||
else
|
else
|
||||||
snderrtime=`date +%s`-$(stat -c %Y ${NM_TMPFOLDER}/${nip}~${rcheck}.repl.down)
|
snderrtime=`date +%s`-$(stat -c %Y ${NM_TMPFOLDER}/${nip}~${rcheck}.repl.down)
|
||||||
|
echo "HERE: $snderrtime"
|
||||||
if [ ${snderrtime} -gt 10 ]; then
|
if [ ${snderrtime} -gt 10 ]; then
|
||||||
toterrtime=`date +%s`-$(stat -c %Y ${NM_TMPFOLDER}/${nip}~${rcheck}.repl.errtime)
|
toterrtime=`date +%s`-$(stat -c %Y ${NM_TMPFOLDER}/${nip}~${rcheck}.repl.errtime)
|
||||||
SENDNOTICE "Repl-Timeout-'${NM_HOSTNAMES[${nip}]}[${nip}]'" "${NM_REPL_DESC[${rcheck}]} (${NM_REPL_CHECK_LOC[${rcheck}]})
|
SENDNOTICE "Repl-Timeout-'${NM_HOSTNAMES[${nip}]}[${nip}]'" "${NM_REPL_DESC[${rcheck}]} (${NM_REPL_CHECK_LOC[${rcheck}]})
|
||||||
|
|||||||
Reference in New Issue
Block a user