项目作者: Doffy1
项目描述 :
Monitoring DHT11 with Zabbix
高级语言: Perl
项目地址: git://github.com/Doffy1/Zabbix-DHT11.git
Zabbix-DHT11
Monitoring DHT11 with Zabbix
Collect temperature and humidity data from DHT11 sensor connected to RPi.
Details of operation:
- The “query schedule” item send a request to dht.query agent key.
- The agent run the assigned key command (dfy_split.pl) with given parameters.
- The script get datas from DHT11, format them for the zabbix_sender and send.
- The Zabbix server receives the values and work with defined trapper items.
Install:
- Copy userparameter_dht.conf on RPi to Zabbix agent userparameter config directory.
- Increase the Timeout to minimum 10 in /etc/zabbix/zabbix_agentd.conf and restart agent.
- Copy dfy_split.pl to RPi /usr/bin/. If use other directory, then please modify the path in userparameter_dht.conf.
- Install DHT11 binary code from DHT11 repository.
- Add the zabbix user to gpio group in /etc/group file (like: gpio
997:pi,zabbix). - 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.
- Enjoy!
Tested environment:
RPi3B+ Linux 4.19.66-v7+, Zabbix 4.2