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

add new line

parent 53e446af
No related branches found
No related tags found
1 merge request!108add new line
...@@ -41,6 +41,12 @@ ...@@ -41,6 +41,12 @@
self_APPNAME=$( basename $0 | tr [:lower:] [:upper:] ) self_APPNAME=$( basename $0 | tr [:lower:] [:upper:] )
self_APPVERSION=1.0 self_APPVERSION=1.0
# new line
NL="
"
out=""
showData=0
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# functions # functions
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
...@@ -93,8 +99,6 @@ case "$1" in ...@@ -93,8 +99,6 @@ case "$1" in
*) *)
esac esac
showData=0
# --- get data # --- get data
cmdout=$( sudo onevm list --csv 2>&1 ) cmdout=$( sudo onevm list --csv 2>&1 )
...@@ -125,17 +129,17 @@ ph.perfadd "other" "${iOther}" ...@@ -125,17 +129,17 @@ ph.perfadd "other" "${iOther}"
if [ $iUnknown -ne 0 ]; then if [ $iUnknown -ne 0 ]; then
ph.setStatus "warning" ph.setStatus "warning"
out+="WARNING: a vm with status [Unknown] was found." out+="WARNING: a vm with status [Unknown] was found.${NL}"
fi fi
if [ $iOther -ne 0 ]; then if [ $iOther -ne 0 ]; then
ph.setStatus "warning" 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 fi
if [ $iFail -ne 0 ]; then if [ $iFail -ne 0 ]; then
ph.setStatus "critical" ph.setStatus "critical"
out+="ERROR: a vm with status [Failed] was found." out+="ERROR: a vm with status [Failed] was found.${NL}"
fi fi
out+=$( out+=$(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment