From a08423a198c9d1090e00d1f6123f5649ae9f81ac Mon Sep 17 00:00:00 2001 From: Der_Leopold Date: Tue, 27 Nov 2018 17:36:29 +0100 Subject: [PATCH] add zabbix template and agent config --- template_dht.xml | 218 +++++++++++++++++++++++++++++++++++++++++ userparameter_dht.conf | 2 + 2 files changed, 220 insertions(+) create mode 100644 template_dht.xml create mode 100644 userparameter_dht.conf diff --git a/template_dht.xml b/template_dht.xml new file mode 100644 index 0000000..89b6eea --- /dev/null +++ b/template_dht.xml @@ -0,0 +1,218 @@ + + + 4.0 + 2018-11-27T16:30:46Z + + + Templates + + + + + + + + {Template DHTxx:dht.humidity.nodata(15m)}=1 + 0 + + No humidity reading for more than 15 minutes + 0 + + + 0 + 2 + + 0 + 0 + + + + + {Template DHTxx:dht.temperature.nodata(15m)}=1 + 0 + + No temperature reading for more than 15 minutes + 0 + + + 0 + 2 + + 0 + 0 + + + + + {Template DHTxx:dht.temperature.avg(2)}>=35 + 0 + + Temperature too high + 0 + + + 0 + 4 + + 0 + 0 + + + + + {Template DHTxx:dht.temperature.avg(2)}<=5 + 0 + + Temperature too low + 0 + + + 0 + 4 + + 0 + 0 + + + + + diff --git a/userparameter_dht.conf b/userparameter_dht.conf new file mode 100644 index 0000000..c59794d --- /dev/null +++ b/userparameter_dht.conf @@ -0,0 +1,2 @@ +UserParameter=dht.temperature[*],/opt/Zabbix-DHT/readOutput.sh temperature +UserParameter=dht.humidity[*],/opt/Zabbix-DHT/readOutput.sh humidity