diff options
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index 9dc3d61a5..041e520ce 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -4754,6 +4754,11 @@ sub check_hot_standby_delay { return; } + ## If no slave detected, assume it is 2 + if (! defined $slave) { + $slave = 2; + } + ## If the slave is "db1" and master "db2", go ahead and switch them around for clearer output if (1 == $slave) { ($slave, $master) = (2, 1); |