Make it clear that the uptime data comes from the `uptime` command and not something we're putting together ourselves.

This commit is contained in:
Ivaylo Novakov 2020-08-28 16:05:24 +02:00
parent 58409b8cee
commit 59bad59cb7
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ async def check_load_average():
pattern = "^.*load average: \d*\.\d*, \d*\.\d*, (\d*\.\d*)$"
load_av = re.match(pattern, uptime_string).group(1)
if float(load_av) > 10:
await send_msg(client, "High system load detected: `{}`".format(uptime_string), force_notify=True)
await send_msg(client, "High system load detected: `uptime: {}`".format(uptime_string), force_notify=True)
# check_docker_logs checks the docker logs by filtering on the docker image name
async def check_docker_logs():