Skip to main content

Nagios Plugin for monitoring temperature and humidity from a Raspberry Pi

Reason this release was yanked:

Accidental release

Project description

check-dht

Nagios Plugin for monitoring temperature and humidity from a Raspberry Pi

Notice: This plugin works in conjuction with the pico-dht project!

Install

This software has two dependencies:

  1. pySerial
  2. nagiosplugin

Both should be available for installation from your distribution's package manager and pip.

Overview

Example output with default parameters

$ check_dht
DHT OK - 24.2 °C | error=0 humidity=34.9;40;50;0;100 temperature=24.2;30;40;-40;80

Usage

$ check_dht -h
usage: check_dht [-h] [-p PORT] [-b BAUD] [-w TEMP] [-c TEMP]
                 [--humidity-warning PERCENT] [--humidity-critical PERCENT]

Nagios Plugin to monitor DHT22/AM2302 data

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  the serial file to read from
  -b BAUD, --baud BAUD  baudrate of the serial port
  -w TEMP, --warning TEMP
                        return warning if air temperature is outside TEMP
  -c TEMP, --critical TEMP
                        return critical if air temperature is outside TEMP
  --humidity-warning PERCENT
                        return warning if humidity is outside PERCENT
  --humidity-critical PERCENT
                        return critical if humidity is outside PERCENT

(c) Johannes Arnold 2023. This software is published under the terms of the
GNU GPLv3. For the companion project to this plugin, see
https://github.com/j0hax/dht22

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

check_dht-0.1.0.tar.gz (14.8 kB view hashes)

Uploaded Source

Built Distribution

check_dht-0.1.0-py3-none-any.whl (15.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page