From 8fb66b237b7375b322cb5781859633923e27d147 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Fri, 9 Jun 2023 14:28:37 +0200
Subject: [PATCH] update message for no replication

---
 check_psqlserver | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_psqlserver b/check_psqlserver
index 026654b..56ee58d 100755
--- a/check_psqlserver
+++ b/check_psqlserver
@@ -304,7 +304,7 @@ case "${sMode}" in
     "replication")
         _out=$( psql -c "select * from pg_stat_replication" 2>&1 ) || _queryFailed
         if tail -1 <<< "$_out"  | grep "(0 rows)" >/dev/null ; then
-            descr="No data in pg_stat_replication - this is no slave."
+            descr="No data in pg_stat_replication = no replication here."
             out=""
         else
             descr="status (from pg_stat_replication)"
-- 
GitLab