diff --git a/check_onevm b/check_onevm
index 8334810cee3967fe580ff5230f0524c986cb5fc3..c41dd05ba6f4e7b8f5426dfddccb843c92bf1d7d 100755
--- a/check_onevm
+++ b/check_onevm
@@ -41,6 +41,12 @@
 self_APPNAME=$( basename $0 | tr [:lower:] [:upper:] )
 self_APPVERSION=1.0
 
+# new line
+NL="
+"
+out=""
+showData=0
+
 # ----------------------------------------------------------------------
 # functions
 # ----------------------------------------------------------------------
@@ -93,8 +99,6 @@ case "$1" in
     *)
 esac
 
-showData=0
-
 # --- get data
 cmdout=$( sudo onevm list --csv 2>&1 )
 
@@ -125,17 +129,17 @@ ph.perfadd "other"    "${iOther}"
 
 if [ $iUnknown -ne 0 ]; then
     ph.setStatus "warning"
-    out+="WARNING: a vm with status [Unknown] was found."
+    out+="WARNING: a vm with status [Unknown] was found.${NL}"
 fi
 
 if [ $iOther -ne 0 ]; then
     ph.setStatus "warning"
-    out+="WARNING: There is a VM that has another status than [running]."
+    out+="WARNING: There is a VM that has another status than [running].${NL}"
 fi
 
 if [ $iFail -ne 0 ]; then
     ph.setStatus "critical"
-    out+="ERROR: a vm with status [Failed] was found."
+    out+="ERROR: a vm with status [Failed] was found.${NL}"
 fi
 
 out+=$(