Python Plugin : Synology via SNMP

Python and python framework

Moderator: leecollings

Post Reply
User avatar
JayDotR
Posts: 43
Joined: Thursday 02 January 2025 21:15
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Lux
Contact:

Python Plugin : Synology via SNMP

Post by JayDotR »

Hi, I used to use xofor's Synology Plugin for a long time, the migration from bookworm to trixie made me realize that pysnmp as pip install was no longer a good choice. So, I rewrote the plugin from scratch and I want to share it with the community.

Code: Select all

Domoticz-Synology-SNMP : A Domoticz plugin that monitors a Synology NAS through the native net-snmp command line tools (snmpget, snmpbulkwalk, snmpwalk).

No pysnmp, no Python packages at all. The only dependency is the snmp package of your distribution. The hardware is detected, not configured. Number of drives, storage pools, volumes, network ports, UPS, fans, SSD cache, expansion units: read from the NAS, turned into Domoticz devices. 
No "DSM OID" setting, no interface numbers, no disk count.
Never blocks Domoticz. Polling runs in a background thread; a slow or dead NAS cannot stall the plugin thread.
Modular. Parser, SNMP client, one collector per hardware area, engine and Domoticz glue are separate modules. 
A new area is one new file.

Therefore get your copy by a git clone https://github.com/janreimen/Domoticz-Synology-SNMP
Latest Release 0.2.0 is out
--
Domoticz Beta on raspberry3b, and raspberry4(b) on Rasbian Trixie / Python 3.13 / 64 bit
Using: PiHole, SolarEdge Modbus, Sainlogic / Weather Underground, MQTT, Fritzbox, P1 Meter(s), dzvents Scripting
https://www.github.com/janreimen/
Post Reply