@daemonitor/plugins 1.1.45 → 1.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -169,6 +169,10 @@ export function createSynologyPlugin() {
|
|
|
169
169
|
clearInterval(refreshTimer);
|
|
170
170
|
refreshTimer = null;
|
|
171
171
|
};
|
|
172
|
-
|
|
172
|
+
const plugin = createMonitoringPlugin("synology", "snmp", "Synology NAS disks, pools and volumes through the DSM web API", async () => { }, monitorFn, refreshFn, teardownFn);
|
|
173
|
+
// `name` is the x-type sent to the server, and PluginManager picks plugins from
|
|
174
|
+
// the config list by getName(). Without this, listing "synology" runs nothing.
|
|
175
|
+
plugin.getName = () => "synology";
|
|
176
|
+
return plugin;
|
|
173
177
|
}
|
|
174
178
|
export default createSynologyPlugin;
|