wb_editors
14 355
правок
(Новая страница: «Config-my-device.json template:») |
FuzzyBot (обсуждение | вклад) м (FuzzyBot переименовал страницу Драйвер SNMP/en в SNMP/en без оставления перенаправления: Часть переводимой страницы Драйвер SNMP.) |
||
(не показано 8 промежуточных версий 1 участника) | |||
Строка 186: | Строка 186: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Configuration file: | |||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
{ | { | ||
Строка 212: | Строка 212: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
In this case, we have described one my-device template, by which we have defined two different devices Device 1 and Device 2 with the same set of channels. | |||
In this case, we have described one my-device template, by which we have defined two different devices Device 1 and Device 2 with the same set of channels. | |||
Since Device 1 is on the local network, it is logical to set it a small timeout value to quickly determine the malfunction of the device. All other settings are taken from the template. | |||
Device 2 and the remote server, because for him, it is necessary to increase the timeout to not think the device is faulty if the delay of the package. What's more, for channel 2 here, we are redefining the polling interval to a larger one to reduce the load on the network. | |||
So, it is very convenient to use templates to describe a group of similar devices. | |||
= Template list = | |||
The WB-mqtt-snmp package includes a set of templates for typical devices (the list will be expanded): | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! | ! Device !! Template !! Tested !! Comments | ||
|- | |- | ||
| | | Test server Net-SNMP || test-snmp || style="background: #22EE44;" | Yes || Test server address test.net-snmp.org | ||
|- | |- | ||
| APC UPS || apc-ups || Нет || | | APC UPS || apc-ups || Нет || | ||
* | * Requires locally installed PowerNet-MIB | ||
* | * The device description is the same as in wb-mqtt-apcsnmp | ||
|- | |- | ||
|} | |} |