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

fix setstatus

parent 4cf7dcdf
Branches
No related tags found
1 merge request!107fix setstatus
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment