I want disk temps and SMART attributes in Grafana, but I'd like to do it without turning the NAS into another thing with an open port and a login to maintain. It holds the data everyone in the house cares about, so every new listener on it counts as blast radius.
The options I've found so far, and what bothers me about each:
- SNMP + snmp_exporter on a separate VM. Synology publishes its own MIB, so temps and disk status should be reachable this way. The NAS only needs SNMP on, ideally v3 and limited to the monitoring VM's address. My worry is the snmp_exporter generator step. It's config you have to build and keep in Git, and I haven't done it yet.
- An exporter on the NAS itself (smartctl_exporter, or node_exporter with the textfile collector). It gives the richest SMART data, but it needs disk access, and I'm unsure how well that fits Synology's container setup. On TrueNAS I'd rather not install things on the host at all.
- Pull over SSH from a collector VM, with a locked-down key that only runs smartctl and writes metrics there. No new listener on the NAS, but now there's an SSH key and a script to babysit.
The smartctl side is the easy part:
smartctl -j -A /dev/sda
That gives JSON I can parse anywhere. The hard part is deciding where it runs.
I'm leaning toward SNMP v3 restricted to one source IP, with a firewall rule on the management VLAN as a second layer. I'd only add an exporter if SNMP turns out to miss the SMART attributes I actually alert on, like reallocated and pending sectors. I haven't verified that yet.
What did you end up with on Synology or TrueNAS, and did you regret it? Does SNMP cover enough SMART detail in practice, or did you end up needing smartctl directly?