diff --git a/icinga-cli.sh b/icinga-cli.sh index 5fe128b3eb536655fdc1ff1b357b13e85a1a2c1a..5748e41b78b34d6468d0dad5a17792ef434d6e88 100755 --- a/icinga-cli.sh +++ b/icinga-cli.sh @@ -14,7 +14,7 @@ _product="ICINGA PASSIVE CLIENT" -_version="0.4" +_version="0.5" _license="GNU GPL 3.0" _copyright='(c) 2020 Institute for Medical Education * University of Bern' @@ -320,6 +320,7 @@ function processCheck(){ fi typeset -i local iTsEnd=`date +%s` # outPerfdata=`grep '|' $_outfile | cut -f 2 -d '|'` + outPerfdata=`grep '|' $_outfile | rev | cut -f 1 -d '|' | rev` echo echo -------- check output: cat $_outfile