check_postgres icon indicating copy to clipboard operation
check_postgres copied to clipboard

check_hot_standby_delay: compare database system identifier

Open jw1u1 opened this issue 3 years ago • 0 comments

The system identifiers of master and standby should be compared to ensure that replication and monitoring are working properly. Alternatively, don't set a negative delta to zero but warn about it:

# Make sure it's always positive or zero
$rec_delta = 0 if defined $rec_delta and $rec_delta < 0;
$rep_delta = 0 if defined $rep_delta and $rep_delta < 0;

jw1u1 avatar Jan 21 '22 11:01 jw1u1