Commit Graph

24 Commits

Author SHA1 Message Date
Karol Wypchło 71f9d5280e
use webhook instead of discrod bot to send messages (#979)
* initial refactor

* do not use before define

* forgot to remove client

* test notification

* add /cc

* fix /cc

* fix /cc role

* fix /cc

* test file upload

* test file upload

* test file upload

* default to no mentions

* unformat

* replace discord with DiscordWebhook

* add readme

* don't fail on failures in message send
2021-07-16 13:12:58 +02:00
Karol Wypchlo bc879b51cc update log message 2020-09-29 15:46:40 +02:00
Karol Wypchło 10a251c081
reimplement health checks (#434) 2020-09-29 12:32:45 +02:00
Ivaylo Novakov 0838e4f5e5
Add free disk space check to health-checker.py.
Move load-average check to health-checker.py.
2020-09-07 17:56:47 +02:00
Ivaylo Novakov 5eece67b03
Move parameter parsing to the top of the script. 2020-09-04 17:13:36 +02:00
Ivaylo Novakov 1cc20903c6
Move max discord message len to a constant.
Report critical checks failed.
Formatting.
2020-09-04 17:07:47 +02:00
Matthew Sevey a911b36f56 Add severe check to log checker 2020-09-03 10:53:52 -04:00
Ivaylo Novakov 2fc6d30c01
Use `os._exit` instead of `sys.exit` - we don't want to raise an exception. 2020-08-31 13:38:45 +02:00
Ivaylo Novakov 8761a77e18
Don't call `await client.close()`. 2020-08-31 13:27:49 +02:00
Ivaylo Novakov 59bad59cb7
Make it clear that the uptime data comes from the `uptime` command and not something we're putting together ourselves. 2020-08-28 16:05:24 +02:00
Ivaylo Novakov 58409b8cee
Switch from the "1 minute" to "15 minutes" average. 2020-08-28 11:59:27 +02:00
Ivaylo Novakov efb35054f7
When chekcing logs, check also the system load and report it if it's above 10. 2020-08-28 11:54:47 +02:00
Ivaylo Novakov 2126115df4
Send the last 1MB of error log as a file. 2020-08-26 11:32:58 +03:00
Ivaylo Novakov 3b0c597516
Limit the errors sent in a discord message to under 2000 characters (including prefix message). 2020-08-26 11:13:16 +03:00
Ivaylo Novakov 0eb8ab0d7c
Use a clearer log message and add some debug output. 2020-08-24 12:33:03 +03:00
Ivaylo Novakov 81acebad5c
Add the forced exit to funds-checker.py as well. 2020-08-19 10:25:23 +03:00
Ivaylo Novakov 19fff428cd
Move code to the right place. 2020-08-19 10:17:26 +03:00
Ivaylo Novakov b05af57b54
Cleanup the old function. 2020-08-18 18:37:49 +03:00
Ivaylo Novakov 00fff39bf2
Add a new log checked for docker. 2020-08-18 17:27:01 +03:00
Marcin Jachymiak 321bbd4d0f Fix log checker false positives 2020-03-26 11:12:07 -04:00
Marcin Jachymiak a90dc717c6 Check logs for panics 2020-03-24 10:23:09 -04:00
Marcin Jachymiak f205f46928 Add hour param to log checker 2020-03-10 11:08:54 -04:00
Marcin Jachymiak bc3e72726e Set force_notify in log check error cases 2020-03-09 16:06:15 -04:00
Marcin Jachymiak 6d8fe9ca02 Add log checker 2020-03-09 15:55:03 -04:00