proxi-watch.py: externer 24/7-Watchdog fuer google-vm (WAN/TS-Checks, Alert via kasserver-Relay); Installationsanleitung in README
This commit is contained in:
13
README.md
13
README.md
@ -136,3 +136,16 @@ flowchart TB
|
||||
WAN -.->|"Port-Forward → vmbr0 → Gäste"| BR
|
||||
TSN -.->|"Gäste auch per Tailscale-IP erreichbar"| RUN
|
||||
```
|
||||
|
||||
## Externer Watchdog (google-vm, 24/7)
|
||||
|
||||
`proxi-watch.py` läuft alle 5 Min auf der Google-VM (100.87.87.104) und prüft von außen: WAN `https://92.209.221.170:8006` (erkennt Router-Hänger), Tailscale `https://100.87.87.100:8006`, Gitea `100.87.87.6:3000`. Bei Ausfall/Wiederkehr: Alert-Mail an `proxmox@wralto.org` via kasserver-Relay (465, SASL). SMTP-Passwort liegt lokal auf der VM in `/etc/proxi-watch.secret` (nicht im Repo).
|
||||
|
||||
Installation auf der google-vm (GCE-Konsole, root):
|
||||
```
|
||||
sudo curl -sL http://100.87.87.6:3000/mistral/doku/raw/branch/main/proxi-watch.py -o /usr/local/bin/proxi-watch.py
|
||||
sudo chmod 755 /usr/local/bin/proxi-watch.py
|
||||
sudo sh -c 'echo "<SMTP-PASSWORT>" > /etc/proxi-watch.secret && chmod 600 /etc/proxi-watch.secret'
|
||||
(crontab -l 2>/dev/null; echo "*/5 * * * * /usr/bin/python3 /usr/local/bin/proxi-watch.py") | sudo crontab -
|
||||
sudo /usr/bin/python3 /usr/local/bin/proxi-watch.py # Testlauf
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user