2022-04-15 13:57:51 +00:00
|
|
|
# Limpiar mensualmente
|
|
|
|
check program cleanup
|
2022-06-11 22:52:16 +00:00
|
|
|
with path "/usr/bin/foreman run -f /srv/Procfile -d /srv cleanup" as uid "rails" gid "www-data"
|
2022-04-15 13:57:51 +00:00
|
|
|
every "0 3 1 * *"
|
2020-05-29 18:03:24 +00:00
|
|
|
if status != 0 then alert
|
2022-04-23 19:28:32 +00:00
|
|
|
|
2023-01-20 21:22:08 +00:00
|
|
|
check program distributed_press_tokens_renew
|
|
|
|
with path "/usr/bin/foreman run -f /srv/Procfile -d /srv distributed_press_tokens_renew" as uid "rails" gid "www-data"
|
|
|
|
every "0 3 * * *"
|
|
|
|
if status != 0 then alert
|
2023-03-23 21:49:28 +00:00
|
|
|
|
2024-02-27 16:25:40 +00:00
|
|
|
check program fediblocks
|
|
|
|
with path "/usr/bin/foreman run -f /srv/Procfile -d /srv fediblocks" as uid "rails" gid "www-data"
|
|
|
|
every "0 7 * * *"
|
|
|
|
if status != 0 then alert
|
|
|
|
|
2022-04-23 19:28:32 +00:00
|
|
|
check program access_logs
|
2022-04-23 23:35:07 +00:00
|
|
|
with path "/srv/bin/access_logs" as uid "rails" and gid "www-data"
|
2022-04-23 19:28:32 +00:00
|
|
|
every "0 0 * * *"
|
|
|
|
if status != 0 then alert
|
2022-06-11 22:42:55 +00:00
|
|
|
|
|
|
|
check program stats
|
|
|
|
with path "/usr/bin/foreman run -f /srv/Procfile -d /srv stats" as uid "rails" gid "www-data"
|
|
|
|
every "0 1 * * *"
|
|
|
|
if status != 0 then alert
|
2023-01-20 21:22:08 +00:00
|
|
|
|
2023-03-29 18:12:10 +00:00
|
|
|
check filesystem root with path /
|
|
|
|
if space usage > 80% for 5 times within 15 cycles then alert
|
|
|
|
if space usage > 90% for 5 cycles then exec "/usr/bin/foreman run -f /srv/Procfile -d /srv emergency_cleanup" as uid "rails" gid "www-data"
|
2024-01-02 17:56:18 +00:00
|
|
|
|
2023-03-29 00:15:55 +00:00
|
|
|
check process que with pidfile /srv/tmp/que.pid
|
|
|
|
start program = "/usr/bin/foreman run -f /srv/Procfile -d /srv que"
|
|
|
|
stop program = "/bin/sh -c 'cat /srv/tmp/que.pid | xargs -r kill'"
|