diff --git a/icinga-cli.sh b/icinga-cli.sh index 4efc6f8d5fbbc3f22a20f11645758b516e335da1..7d49ed6a2353a10d86c7cf5f6394a1088e05496f 100755 --- a/icinga-cli.sh +++ b/icinga-cli.sh @@ -359,14 +359,14 @@ function processCheck(){ _echo -------- check output: _echo $( cat "$_outfile" ) - # 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 + 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" + fi + sed -i "s#|#:#g" "$_outfile" _echo # echo -------- extracted performance data: