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

Merge branch '6435-check-onehost' into 'master'

add new line

See merge request !108
parents 12867b6d ab85e881
No related branches found
No related tags found
1 merge request!108add new line
......@@ -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+=$(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment