Synology Storage Status
Query the Synology NAS for storage information via the DSM Web API.
Workflow
1. Authenticate
Use the shared auth flow from the plugin context.
2. Query Storage
Volume Info (capacity, usage):
bash
curl -s -k "https://${SYNOLOGY_HOST}:5001/webapi/entry.cgi?api=SYNO.Core.Storage.Volume&version=1&method=list&_sid=${SID}"
Disk Info (health, temperature, model):
bash
curl -s -k "https://${SYNOLOGY_HOST}:5001/webapi/entry.cgi?api=SYNO.Core.Storage.Disk&version=1&method=list&_sid=${SID}"
RAID Status:
bash
curl -s -k "https://${SYNOLOGY_HOST}:5001/webapi/entry.cgi?api=SYNO.Core.Storage.Pool&version=1&method=list&_sid=${SID}"
3. Logout
4. Present Results
Format into a storage dashboard:
- •Per-volume: name, total capacity, used space, usage percentage, filesystem status
- •Per-disk: model, serial, temperature, health status (SMART), allocation
- •RAID/Pool: type (SHR, RAID1, etc.), status (healthy/degraded), member disks
Flag alerts for:
- •Volume usage > 85%
- •Disk temperature > 50°C
- •Any non-healthy SMART status
- •Degraded RAID arrays