Skip to content
Snippets Groups Projects

fix setstatus

Merged Hahn Axel (hahn) requested to merge 6435-check-onehost into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
+ 3
3
@@ -124,17 +124,17 @@ ph.perfadd "unknown" "${iUnknown}"
ph.perfadd "other" "${iOther}"
if [ $iUnknown -ne 0 ]; then
ps.setStatus "warning"
ph.setStatus "warning"
out+="WARNING: a vm with status [Unknown] was found."
fi
if [ $iOther -ne 0 ]; then
ps.setStatus "warning"
ph.setStatus "warning"
out+="WARNING: There is a VM that has another status than [running]."
fi
if [ $iFail -ne 0 ]; then
ps.setStatus "critical"
ph.setStatus "critical"
out+="ERROR: a vm with status [Failed] was found."
fi
Loading