From 6cf6da511f0fd32e4ead221e55e706f130c18102 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Fri, 8 Jul 2022 13:18:59 +0200 Subject: [PATCH] keep pipes in output --- icinga-cli.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/icinga-cli.sh b/icinga-cli.sh index 5205109..4efc6f8 100755 --- a/icinga-cli.sh +++ b/icinga-cli.sh @@ -359,14 +359,14 @@ function processCheck(){ _echo -------- check output: _echo $( cat "$_outfile" ) - iPipes=$( sed 's#[^|]##g' "$_outfile" | grep "." | wc -L ) - _echo "Pipe chars: $iPipes" - if [[ $iPipes -gt 1 ]]; then - _elog "WARNING - pipes were found in plugin output" - _elog "command was: $myFullscript $myparams" - _log "${_logPrefix} WARNING - pipes were found in plugin output" - sed -i "s#|#:#g" "$_outfile" - fi + # iPipes=$( grep -o "|" < "$_outfile" | wc -l ) + # _echo "Pipe chars: $iPipes" + # if [[ $iPipes -gt 1 ]]; then + # _elog "WARNING - pipes were found in plugin output" + # _elog "command was: $myFullscript $myparams" + # _log "${_logPrefix} WARNING - pipes were found in plugin output" + # sed -i "s#|#:#g" "$_outfile" + # fi _echo # echo -------- extracted performance data: -- GitLab