Skip to content

Commit c5157a6

Browse files
Daan HooglandDaanHoogland
Daan Hoogland
authored andcommitted
change some error and succes to warning or unknown
1 parent b0b986d commit c5157a6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

systemvm/debian/root/health_checks/cpu_usage_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def main():
2929

3030
if "maxCpuUsage" not in data:
3131
print("Missing maxCpuUsage in health_checks_data systemThresholds, skipping")
32-
exit(0)
32+
exit(2)
3333

3434
maxCpuUsage = float(data["maxCpuUsage"])
3535
cmd = "top -b -n2 -p 1 | fgrep \"Cpu(s)\" | tail -1 | " \
@@ -48,7 +48,7 @@ def main():
4848
exit(0)
4949
else:
5050
print("Failed to retrieve cpu usage using " + cmd)
51-
exit(1)
51+
exit(3)
5252

5353

5454
if __name__ == "__main__":

systemvm/debian/root/health_checks/dhcp_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def main():
2525

2626
if vMs is None or len(vMs) == 0:
2727
print("No VMs running data available, skipping")
28-
exit(0)
28+
exit(3)
2929

3030
try:
3131
with open('/etc/dhcphosts.txt', 'r') as hostsFile:

systemvm/debian/root/health_checks/disk_space_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def main():
2828

2929
if "minDiskNeeded" not in data:
3030
print("Missing minDiskNeeded in health_checks_data systemThresholds, skipping")
31-
exit(0)
31+
exit(3)
3232

3333
minDiskNeeded = float(data["minDiskNeeded"]) * 1024
3434
s = statvfs('/')

0 commit comments

Comments
 (0)