Zabbix/en: различия между версиями

Материал из Wiren Board
(Новая страница: «Accessing channels in Zabbix is as follows: <pre> mqtt.value[topic] </pre>»)
(Новая страница: «where topic is the topic of the corresponding channel in MQTT MQTT»)
Строка 42: Строка 42:
</pre>
</pre>


где topic - топик соответствущего канала в [[Special:MyLanguage/MQTT|MQTT]]
where topic is the topic of the corresponding channel in MQTT
[[MQTT/en|MQTT]]





Версия 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


например:

mqtt.value[/devices/sht1x/controls/humidity]
mqtt.value[/devices/sht1x/controls/temperature]