NAS and UniFi appliances¶
| Host | IP | What | Monitoring | NetBox |
|---|---|---|---|---|
| nas01 | 10.0.3.34 | UniFi UNAS Pro 4 | HTTPS probe | device (Storage) |
| nas02 | 10.0.3.35 | Synology DSM | node_exporter (Docker) + HTTPS probe, dashboard Synology NAS | device (Storage) |
| nas03 | 10.0.3.38 | Synology DSM | node_exporter (Docker) + HTTPS probe, dashboard Synology NAS | device (Storage) |
| unvr | 10.0.3.127 | UniFi UNVR (Protect) | HTTPS probe | device (NVR) |
| usw-aggregation-hvn | 10.0.0.239 | USW-Lite-8 Aggregation | ping + unpoller | device (Switch) |
| usw-xg-hvn | 10.0.0.213 | USW-XG | ping + unpoller | device (Switch) |
| unifi-os-server | 10.0.3.30 | UniFi OS Server LXC (controller for the two switches) | unpoller (UniFi dashboards) | VM |
Inventory: external group in inventory/00-static.yml (nb_* vars feed NetBox via
roles/netbox_sync/tasks/external.yml).
Synology (nas02, nas03)¶
playbooks/nas.yml (Semaphore template nas) logs in as root over SSH and runs
prom/node-exporter in Docker (Container Manager) with host network/PID and / mounted
read-only, so volumes, md RAID, disks and temperatures are visible. A DSM update can remove the
container: the alert NasExporterDown fires, rerun the template.
Prerequisites per NAS: Container Manager installed; Semaphore's public key in
/root/.ssh/authorized_keys; host key pinned in the Semaphore CT's known_hosts.
Alerts: NasRaidDegraded (md array missing/failed disk), NasExporterDown, plus the generic disk-full and probe alerts. Grafana: Synology NAS (homelab folder) and Node Exporter Full.
UniFi¶
unpoller runs on the Prometheus LXC (:9130, job unpoller) when the vault has
vault_unifi_poller_user / vault_unifi_poller_password: a View Only local admin on the
UniFi OS Server. Create it in UniFi OS Server → Admins & Users → Create New → Restrict to
local access only, role Network View Only, then:
scripts/vault-set.py vault_unifi_poller_user unpoller
scripts/vault-set.py vault_unifi_poller_password # prompts, nothing in shell history
and run the monitoring template. Dashboards imported: UniFi-Poller Network Sites (11311), USW Insights (11312), UAP Insights (11314), Client Insights (11315).
The other Ubiquiti devices on the LAN (Switchberging2, Switchhok, Switchmeterkast,
U6-ProWoonkamer, U6-Litegang, UVC-G3-Flex) show up as clients on this controller, i.e. they are
adopted by another controller; add them to unifi_devices once that is known.