From 53e446afea331ee8246abd279b77e2f87b94fe7c Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Mon, 12 Jun 2023 16:44:30 +0200 Subject: [PATCH] fix setstatus --- check_onevm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check_onevm b/check_onevm index 2534659..8334810 100755 --- a/check_onevm +++ b/check_onevm @@ -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 -- GitLab