Merge pull request #1391 from SkynetLabs/sevey/disabl-load-check
Disable load check until we have a process of actively addressing it
This commit is contained in:
commit
acca9ee32d
|
@ -72,7 +72,9 @@ async def check_load_average():
|
||||||
load_av = re.match(pattern, uptime_string).group(1)
|
load_av = re.match(pattern, uptime_string).group(1)
|
||||||
if float(load_av) > 10:
|
if float(load_av) > 10:
|
||||||
message = "High system load detected in uptime output: {}".format(uptime_string)
|
message = "High system load detected in uptime output: {}".format(uptime_string)
|
||||||
await send_msg(message, force_notify=True)
|
# Disabling pings until we have metrics solution and process to better
|
||||||
|
# address
|
||||||
|
await send_msg(message, force_notify=False)
|
||||||
|
|
||||||
|
|
||||||
# check_disk checks the amount of free space on the /home partition and issues
|
# check_disk checks the amount of free space on the /home partition and issues
|
||||||
|
@ -109,7 +111,9 @@ async def check_disk():
|
||||||
|
|
||||||
# dump disk usage
|
# dump disk usage
|
||||||
script_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
|
script_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
|
||||||
os.popen(script_dir + "/disk-usage-dump.sh " + script_dir + "/" + DISK_USAGE_DUMP_LOG)
|
os.popen(
|
||||||
|
script_dir + "/disk-usage-dump.sh " + script_dir + "/" + DISK_USAGE_DUMP_LOG
|
||||||
|
)
|
||||||
|
|
||||||
inspect = os.popen("docker inspect sia").read().strip()
|
inspect = os.popen("docker inspect sia").read().strip()
|
||||||
inspect_json = json.loads(inspect)
|
inspect_json = json.loads(inspect)
|
||||||
|
|
Reference in New Issue