Zabbix/en: различия между версиями
(Новая страница: «== Use ==») |
(Новая страница: «Accessing channels in Zabbix is as follows: <pre> mqtt.value[topic] </pre>») |
||
Строка 37: | Строка 37: | ||
== Use == | == Use == | ||
Accessing channels in Zabbix is as follows: | |||
<pre> | <pre> | ||
mqtt.value[topic] | mqtt.value[topic] |
Версия 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]
где topic - топик соответствущего канала в MQTT
например:
mqtt.value[/devices/sht1x/controls/humidity] mqtt.value[/devices/sht1x/controls/temperature]