From a39e1e9bbb737d4c60a81ab2e1ae660926c5497d Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Tue, 13 Jun 2023 15:37:39 +0200
Subject: [PATCH] replication: add description

---
 check_psqlserver | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/check_psqlserver b/check_psqlserver
index cae1640..e840f52 100755
--- a/check_psqlserver
+++ b/check_psqlserver
@@ -331,6 +331,8 @@ case "${sMode}" in
                 out+=" - backup: This WAL sender is sending a backup.${NL}"
                 out+=" - stopping: This WAL sender is stopping.${NL}"
                 out+=""
+            else
+                out+="OK: all replications have the state 'streaming'.${NL}"
             fi
 
             # --- check: max_leg
@@ -345,6 +347,8 @@ case "${sMode}" in
                 ph.setStatus "warning"
                 descr+=" ... lag warning"
                 out+="WARNING: !!! experimantal !!! a lag larger 1 sec was detected. Maybe a target server is out of sync.'.${NL}"
+            else
+                out+="OK: maximum lag is $MaxLag sec (below 1 sec).${NL}"
             fi
 
             out+=$( echo "${_out}${NL}" | tr '|' ':' )
-- 
GitLab