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():
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
5454if __name__ == "__main__" :
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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 ('/' )
You can’t perform that action at this time.
0 commit comments