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

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

fix setstatus

See merge request !107
parents ab33dae4 53e446af
No related branches found
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