From 3aaa4a6b189e2c7ac04f86a36c3cdca91542a9ef Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 15 Jul 2024 12:50:27 +0200 Subject: [PATCH] Fix wording --- check_pg_streaming_replication | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/check_pg_streaming_replication b/check_pg_streaming_replication index 378fa5b..be6272a 100755 --- a/check_pg_streaming_replication +++ b/check_pg_streaming_replication @@ -59,7 +59,7 @@ Usage: $0 [-d] [-h] [options] -m pg_main Specify Postgres main directory path (Default: try to auto-detect or use $DEFAULT_PG_MAIN) -r recovery_conf Specify Postgres recovery configuration file path - ( Default: [PG_MAIN]/recovery.conf on PG <= 11, [PG_MAIN]/postgresql.auto.conf on PG >= 12) + (Default: [PG_MAIN]/recovery.conf on PG <= 11, [PG_MAIN]/postgresql.auto.conf on PG >= 12) -U pg_master_user Specify Postgres user to use on master (Default: user from recovery.conf file) -p pg_port Specify default Postgres master TCP port (Default: same as local PostgreSQL port if detected or use $DEFAULT_PG_PORT) @@ -293,7 +293,7 @@ then # Check recovery mode if [ $RECOVERY_MODE -ne 1 ] then - echo "CRITICAL: Not in recovery mode while recovery.conf file found !" + echo "CRITICAL: Not in recovery mode while $RECOVERY_CONF_FILENAME file found !" exit 2 fi debug "Postgres is in recovery mode" @@ -317,7 +317,7 @@ then M_HOST=$( echo "$MASTER_CONN_INFOS"| grep 'host=' | sed 's/^.*host= *\([0-9a-zA-Z.-]\+\) *.*$/\1/' ) if [ ! -n "$M_HOST" ] then - echo "UNKNOWN: Can't retrieve master host from recovery.conf file" + echo "UNKNOWN: Can't retrieve master host from primary_conninfo configuration parameter" exit 3 fi debug "Master host: $M_HOST" @@ -458,7 +458,7 @@ then # Check recovery mode if [ $RECOVERY_MODE -eq 1 ] then - echo "CRITICAL: In recovery mode while recovery.conf file not found !" + echo "CRITICAL: In recovery mode while expected mode is master!" exit 2 fi debug "Postgres is not in recovery mode"