56 lines
1.2 KiB
Markdown
56 lines
1.2 KiB
Markdown
# Unraid User Scripts fuer Posture-Checks
|
|
|
|
Host-Repo-Pfad:
|
|
|
|
```text
|
|
/mnt/user/services/homelab-infra
|
|
```
|
|
|
|
## `posture-check-at-start`
|
|
|
|
Zeit: Array Start.
|
|
|
|
```bash
|
|
#!/bin/bash
|
|
bash /mnt/user/services/homelab-infra/services/posture-check/posture-check.sh
|
|
```
|
|
|
|
## `posture-check-hourly`
|
|
|
|
Zeit: stuendlich.
|
|
|
|
```bash
|
|
#!/bin/bash
|
|
bash /mnt/user/services/homelab-infra/services/posture-check/posture-check.sh
|
|
```
|
|
|
|
## `cert-token-check-daily`
|
|
|
|
Zeit: taeglich, z. B. 06:10.
|
|
|
|
```bash
|
|
#!/bin/bash
|
|
bash /mnt/user/services/homelab-infra/services/posture-check/cert-token-check.sh
|
|
```
|
|
|
|
## `compose-runtime-drift-daily`
|
|
|
|
Zeit: taeglich, z. B. 06:20.
|
|
|
|
```bash
|
|
#!/bin/bash
|
|
bash /mnt/user/services/homelab-infra/services/posture-check/compose-runtime-drift.sh
|
|
```
|
|
|
|
## `docker-critical-events-at-start`
|
|
|
|
Zeit: Array Start. Dieser Job startet einen Hintergrund-Watcher und beendet sich sofort.
|
|
|
|
```bash
|
|
#!/bin/bash
|
|
ps -ef | grep -F -- "docker events --filter event=die --filter event=oom --filter event=kill" | grep -v grep >/dev/null && exit 0
|
|
mkdir -p /mnt/user/services/posture-check
|
|
nohup bash /mnt/user/services/homelab-infra/services/posture-check/docker-critical-events.sh >/mnt/user/services/posture-check/docker-critical-events.out 2>&1 </dev/null &
|
|
exit 0
|
|
```
|