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

show failed command on abort

parent 1491f1cf
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