File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
systemvm/debian/root/health_checks Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def main():
29
29
30
30
if "maxCpuUsage" not in data :
31
31
print ("Missing maxCpuUsage in health_checks_data systemThresholds, skipping" )
32
- exit (0 )
32
+ exit (2 )
33
33
34
34
maxCpuUsage = float (data ["maxCpuUsage" ])
35
35
cmd = "top -b -n2 -p 1 | fgrep \" Cpu(s)\" | tail -1 | " \
@@ -48,7 +48,7 @@ def main():
48
48
exit (0 )
49
49
else :
50
50
print ("Failed to retrieve cpu usage using " + cmd )
51
- exit (1 )
51
+ exit (3 )
52
52
53
53
54
54
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def main():
25
25
26
26
if vMs is None or len (vMs ) == 0 :
27
27
print ("No VMs running data available, skipping" )
28
- exit (0 )
28
+ exit (3 )
29
29
30
30
try :
31
31
with open ('/etc/dhcphosts.txt' , 'r' ) as hostsFile :
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def main():
28
28
29
29
if "minDiskNeeded" not in data :
30
30
print ("Missing minDiskNeeded in health_checks_data systemThresholds, skipping" )
31
- exit (0 )
31
+ exit (3 )
32
32
33
33
minDiskNeeded = float (data ["minDiskNeeded" ]) * 1024
34
34
s = statvfs ('/' )
You can’t perform that action at this time.
0 commit comments