From 9876610822ae2672a53d6f707bb2b5a46d2141c7 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Mon, 30 Jan 2023 17:09:19 +0100 Subject: [PATCH] sed removed the pipe before perf data too --- icinga-cli.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/icinga-cli.sh b/icinga-cli.sh index 7d49ed6..5c6695f 100755 --- a/icinga-cli.sh +++ b/icinga-cli.sh @@ -16,11 +16,12 @@ # 2022-03-04 v0.9 ah abort on http 5xx error # 2022-03-14 v0.10 ah less output and add _elog to run as a service # 2022-07-08 v0.11 ah check pipes in output and performance data +# 2023-01-30 v0.12 ah remove pipes with sed remove the pipe before performancedata # ====================================================================== _product="ICINGA PASSIVE CLIENT" -_version="0.11" +_version="0.12" _license="GNU GPL 3.0" _copyright='(c) 2020 Institute for Medical Education * University of Bern' @@ -366,7 +367,7 @@ function processCheck(){ _elog "command was: $myFullscript $myparams" _log "${_logPrefix} WARNING - pipes were found in plugin output" fi - sed -i "s#|#:#g" "$_outfile" + # sed -i "s#|#:#g" "$_outfile" _echo # echo -------- extracted performance data: -- GitLab