mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Add alert when backup takes a long time
This commit is contained in:
parent
f318e42f8c
commit
f778bfb44e
4 changed files with 29 additions and 2 deletions
|
|
@ -310,10 +310,12 @@ check system $HOST
|
|||
#
|
||||
#
|
||||
|
||||
check file daily-backup with path /backups/backup-ok
|
||||
if timestamp > 25 hours then alert
|
||||
check file daily-backup-done with path /backups/backup-ok
|
||||
if changed timestamp then alert
|
||||
|
||||
check program checkBackupStatus with path /usr/local/bin/checkBackupStatus.sh
|
||||
if status != 0 then alert
|
||||
|
||||
check host home-ssh with address phf.ddns.net
|
||||
if failed port 2222 protocol ssh with timeout 20 seconds then alert
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue