# DEPRECATED — Legacy Monitoring Scripts

> **Superseded by:** felhom-controller v0.4.0+ built-in monitoring
> **Date:** 2026-02-16

The following scripts in this directory were used for monitoring before the controller
had built-in health check support. They are **no longer needed** on nodes running
felhom-controller v0.4.0 or later.

## Replaced scripts

| Legacy script | Replaced by | Controller component |
|---------------|-------------|---------------------|
| `backup-healthcheck.sh` | System health scheduler job (every 5 min) | `internal/monitor/healthcheck.go` |
| `monitoring-setup.sh` | Controller reads `controller.yaml` directly | `internal/config/config.go` |
| `monitoring.conf.template` | `monitoring` section in `controller.yaml` | `controller.yaml` |
| `backup-healthcheck.service` | Controller's built-in scheduler | `internal/scheduler/scheduler.go` |
| `backup-healthcheck.timer` | Controller's built-in scheduler | `internal/scheduler/scheduler.go` |

## What the controller handles natively (v0.6.0+)

- **Heartbeat** ping every 5 minutes (controller process alive)
- **System health** check every 5 minutes (disk, memory, CPU, temp, Docker, protected containers)
- **DB dump** ping after daily database dumps
- **Backup** ping after daily restic snapshots
- **Backup integrity** check weekly (restic check)

All pings are sent to a Healthchecks.io-compatible server configured in `controller.yaml`.
Empty or `CHANGEME` UUIDs are silently skipped.

## Do NOT delete these files yet

These scripts are kept for reference in case a customer is still running a pre-controller
setup. Once all customers are migrated to felhom-controller v0.4.0+, this directory
can be safely removed.
