Skip to content
Snippets Groups Projects
Commit f8b3c489 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'react-on-pipe-in-output' into 'master'

show failed command on abort

See merge request !15
parents baeb98d4 d2228f2a
No related branches found
No related tags found
1 merge request!15show failed command on abort
......@@ -363,6 +363,7 @@ function processCheck(){
_echo "Pipe chars: $iPipes"
if [[ $iPipes -gt 1 ]]; then
_elog "ABORT - pipes were found in plugin output"
_elgo "command was: $myFullscript $myparams"
exit 1
fi
......@@ -372,6 +373,7 @@ function processCheck(){
# echo
if ! test -n "$outPerfdata" && echo "$outPerfdata" | grep "=[0-9\.]*;[0-9\.]*;[0-9\.]*;[0-9\.]*;" >/dev/null; then
_elog "ABORT - this does not look like performance data: $outPerfdata"
_elgo "command was: $myFullscript $myparams"
exit 1
fi
_log "${_logPrefix} check command finished with returncode $rc"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment