Skip to content

Doffy1/Zabbix-DHT11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Monitoring DHT11 with Zabbix

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages