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

Материал из Wiren Board
(Новая страница: «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 <pre> zabbix-mqtt.conf </pre>»)
Строка 18: Строка 18:
The values of the variables To be used citenet V. retained receiving Zabbix-channels value.
The values of the variables To be used citenet V. retained receiving Zabbix-channels value.


Для настройки zabbix-agent нужно создать файл
To set the agent, you need to create a file
<pre>
<pre>
zabbix-mqtt.conf
zabbix-mqtt.conf

Версия 13:35, 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

в директории

/etc/zabbix/zabbix_agentd.d/

со следующим содержимым:

UserParameter=mqtt.value[*],mosquitto_sub -t '$1' -C 1


Использование

Обращение к каналам в Zabbix происходит следующим образом:

mqtt.value[topic]

где topic - топик соответствущего канала в MQTT


например:

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