Zabbix/en: различия между версиями
(Новая страница: «for example:») |
FuzzyBot (обсуждение | вклад) м (FuzzyBot переименовал страницу Zabbix support/en в Zabbix/en без оставления перенаправления: Часть переводимой страницы Zabbix support.) |
(нет различий)
|
Текущая версия на 11:45, 8 июля 2021
See Native bridge to Zabbix: https://github.com/contactless/wb-mqtt-zabbix Packages in Releases section.
Before you start
Install zabbix-agent:
apt-get install zabbix-agent
Settings for Zabbix Agent
The values of the variables To be used citenet V. retained receiving Zabbix-channels value.
To set the agent, you need to create a file
zabbix-mqtt.conf
in a folder
/etc/zabbix/zabbix_agentd.d/
with the following content:
UserParameter=mqtt.value[*],mosquitto_sub -t '$1' -C 1
Use
Accessing channels in Zabbix is as follows:
mqtt.value[topic]
where topic is the topic of the corresponding channel in MQTT MQTT
for example:
mqtt.value[/devices/sht1x/controls/humidity] mqtt.value[/devices/sht1x/controls/temperature]