Files
0012/todo/05-plesk-cron.md
T
Frank Schwenk 54d29d3afa docs: initial project documentation for 0012.de webspace
Document hosting setup, external monitoring architecture, landing page
concept, env template, and phased todo checklist for the wint.global
Classic 1.0 counterpart to boka.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-11 22:25:56 +02:00

42 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 05 — Plesk Cron (Geplante Aufgaben)
**Priorität:** high
**Abhängigkeiten:** 01, 03 (Skript muss existieren)
**Referenz:** Plesk → Websites & Domains → Geplante Aufgaben
## Ziel
Monitoring automatisch alle 5–10 Minuten ausführen.
## Checkliste
- [ ] Aufgabe anlegen: **PHP-Skript ausführen**
- [ ] Skriptpfad: `httpdocs/monitor.php` (Pfad nach Deployment verifizieren)
- [ ] PHP-Version: höchste stabile (z. B. 8.5.7)
- [ ] **Aktiv** angehakt
- [ ] Ausführen: **Cron-Stil**
- [ ] Expression: `*/10 * * * *` (Pull-Checks alle 10 Min)
- [ ] Beschreibung: z. B. „0012 external monitoring pull“
- [ ] Benachrichtigen: **Nur Fehler** (PHP-Crash → Plesk-Mail)
- [ ] **Jetzt ausführen** — Exit-Code / Log prüfen
- [ ] Optional zweite Aufgabe für leichtgewichtigen Heartbeat-Only-Check (`*/5`) — nur wenn von monitor.php getrennt
## Cron-Referenz
```
*/10 * * * * monitor.php (HTTPS/SSL + stale push check)
```
Plesk nutzt System-Timezone des Servers.
## Akzeptanzkriterien
- Aufgabe läuft scheduled ohne manuellen Klick
- `data/last-checks.json` Timestamp bewegt sich
## Fehlerbehebung
- Skriptpfad relativ zu Domain-Root in Plesk
- `max_execution_time` bei vielen URLs erhöhen
- Bei Timeout: URLs batching oder Interval vergrößern