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

allow empty perfdata

parent 2c443984
No related branches found
No related tags found
1 merge request!14allow empty perfdata
......@@ -370,7 +370,7 @@ function processCheck(){
# echo -------- extracted performance data:
# echo $outPerfdata
# echo
if ! echo "$outPerfdata" | grep "=[0-9\.]*;[0-9\.]*;[0-9\.]*;[0-9\.]*;" >/dev/null; then
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"
exit 1
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment