Skip to content

A Nagios / Icinga plugin for checking humidity and temperature of DHT sensors via GPIO

License

Notifications You must be signed in to change notification settings

stdevel/check_dht

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

check_dht

A Nagios / Icinga plugin written in Python (based on the Adafruit_Python_DHT library) for checking humidity and temperature of DHT sensors via GPIO. The plugin also offers performance data for extensions such as PNP4Nagios.

Requirements

For this plugin you need:

  • a GPIO capable device
  • the Python module Adafruit_Python_DHT
  • a DHT11, DHT22 or AM2302 sensor (check eBay for this)
  • a breadboard

Example layout

Build Adafruit_Python_DHT

To build the Python library, check-out the Adafruit_Python_DHT repository. Also, make sure that the make and gcc binaries and Python development files are available on your Linux system. Run the setup.py installation script with root privileges:

# python setup.py install
...
Installed /usr/lib/python2.7/site-packages/Adafruit_DHT-1.1.0-py2.7-linux-armv7l.egg
Processing dependencies for Adafruit-DHT==1.1.0
Finished processing dependencies for Adafruit-DHT==1.1.0

Afterwards, the check_dht.py script should work as expected - make sure to set valid parameters for your test (see below):

# 

ds

About

A Nagios / Icinga plugin for checking humidity and temperature of DHT sensors via GPIO

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages