项目作者: Doffy1

项目描述 :
Monitoring DHT11 with Zabbix
高级语言: Perl
项目地址: git://github.com/Doffy1/Zabbix-DHT11.git
创建时间: 2019-09-06T10:35:38Z
项目社区:https://github.com/Doffy1/Zabbix-DHT11

开源协议:

下载


Zabbix-DHT11

Monitoring DHT11 with Zabbix

Collect temperature and humidity data from DHT11 sensor connected to RPi.

Details of operation:

  1. The “query schedule” item send a request to dht.query agent key.
  2. The agent run the assigned key command (dfy_split.pl) with given parameters.
  3. The script get datas from DHT11, format them for the zabbix_sender and send.
  4. The Zabbix server receives the values and work with defined trapper items.

Install:

  1. Copy userparameter_dht.conf on RPi to Zabbix agent userparameter config directory.
  2. Increase the Timeout to minimum 10 in /etc/zabbix/zabbix_agentd.conf and restart agent.
  3. Copy dfy_split.pl to RPi /usr/bin/. If use other directory, then please modify the path in userparameter_dht.conf.
  4. Install DHT11 binary code from DHT11 repository.
  5. Add the zabbix user to gpio group in /etc/group file (like: gpio:x:997:pi,zabbix).
  6. Load the DHT_sensors_template.xml in Zabbix server and
    • change in query schedule item the zabbix.mydomain.hu string to your Zabbix server name
    • change Humidity and Temperature items alloved hosts value to your RPi (registered in Zabbix) name
    • and assign template to RPi.
  7. Enjoy!

Tested environment:

RPi3B+ Linux 4.19.66-v7+, Zabbix 4.2