Zabbix/en: различия между версиями
(Новая страница: «where topic is the topic of the corresponding channel in MQTT MQTT») |
(Новая страница: «for example:») |
||
Строка 46: | Строка 46: | ||
for example: | |||
<pre> | <pre> |
Версия 13:37, 7 июня 2019
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]