add monitoring scripts

This commit is contained in:
Peter Leurs 2025-08-15 23:09:48 +02:00
parent c51e72686e
commit 8c603d6ebd
5 changed files with 87 additions and 0 deletions

View file

@ -6,6 +6,16 @@ templatefiles:
- src: backupmanager.j2
dest: ~/backupmanager
mode: "0755"
- src: monitor@.service.j2
dest: ~/.config/systemd/user/monitor@.service
- src: monitor.socket.j2
dest: ~/.config/systemd/user/monitor.socket
- src: monitor.sh.j2
dest: ~/monitor.sh
mode: "0755"
- src: monitor-test.sh.j2
dest: ~/monitor-test.sh
mode: "0755"
backuptype: none
configdefinition:
"$id": "backup manager config"
@ -72,3 +82,22 @@ configdefinition:
description: Repositories where the latest backup is older then timeout days will give a warning that there are no recent backups
required:
- repos
exports:
monitoring:
checks:
- name: main
message: Backup manager activated
interval: 3600
type: string
okvalue: active
- name: lastrun
message: Errors last run
interval: 3600
type: string
okvalue: ""
- name: lastrunrecent
message: Backup manager did not run recently
interval: 3600
type: string
okvalue: "OK"