From 9e199623ca603d96eac5fa39987acc342e7a53a7 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Thu, 8 Jun 2023 14:05:49 +0200 Subject: [PATCH] finetune output --- check_psqlserver | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/check_psqlserver b/check_psqlserver index 111d66f..72526dc 100755 --- a/check_psqlserver +++ b/check_psqlserver @@ -30,7 +30,7 @@ myuser=icingamonitor NL=" " -out=" " +out="" # ---------------------------------------------------------------------- # FUNCTIONS @@ -161,7 +161,7 @@ function renderCounters(){ do _iValue=${aVals[$_iCounter]} _iSpeed=$( ph.perfdeltaspeed "psql-${sColumn}-${_sStoreid}" ${_iValue} sec $_sDeltaUnit) - out=$out$(printf "%25s: %10s %s \n" "${sColumn}" "${_iValue}" "... delta = ${_iSpeed} per $_sDeltaUnit${NL}") + out=$( printf "%-25s: %15s %s \n" "${sColumn}" "${_iValue}" "... delta = ${_iSpeed} per $_sDeltaUnit${NL}" ) ph.perfadd "${sColumn}" "${_iSpeed}" _iCounter+=1 done @@ -298,8 +298,7 @@ case "${sMode}" in esac ph.status "Pgsql $sMode :: $descr" -echo -echo "$out" +echo " $out" ph.exit -- GitLab