diff options
author | Tom Buck <tommybuck@users.noreply.github.com> | 2019-10-22 21:08:57 +0100 |
---|---|---|
committer | thiagoftsm <thiagoftsm@gmail.com> | 2019-10-22 20:08:57 +0000 |
commit | 3fdf18dcb6d847e1157316d8f7b8ed6426565ecf (patch) | |
tree | 4d314fc42800348476b87efddcfc7bbdf06590c4 /health | |
parent | 74f9ccd5ecdf1c0595d35aa63e92194b2f92aece (diff) |
add support for am2320 sensor (#7024)
* add support for am2320 sensor
add support for am2320 temperature and humidity sensor
* Rename readme.md to README.md
* updated README.md to include proper sections
updated README.md to include proper sections
* readme updated and file name corrected
readme updated with missing formatting and information. AM2320.chart.py
filename corrected.
* changed simple service import
chnaged simple service import location
* updated README.md to remove the reference of moving the script file.
* requested changes
- Moved header from README.md to am2320.chart.py
- Added Alarm for am2320 to health.d
- Changed exception to value error in am2320.chart.py
* typo
changed mae to make in comment
* Add title and icon for AM2320 Sensor
Add title and icon for AM2320 Sensor
* typo corrected
changed Save to save
* added I2C group to installer
Added netdata to the I2C group during install or update.
Removed instruction to add netdate to I2C group from README.md
* change tab to spaces
change tab to spaces
Diffstat (limited to 'health')
-rw-r--r-- | health/Makefile.am | 1 | ||||
-rw-r--r-- | health/health.d/am2320.conf | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/health/Makefile.am b/health/Makefile.am index a314b35165..c38b2bb318 100644 --- a/health/Makefile.am +++ b/health/Makefile.am @@ -22,6 +22,7 @@ dist_userhealthconfig_DATA = \ healthconfigdir=$(libconfigdir)/health.d dist_healthconfig_DATA = \ health.d/adaptec_raid.conf \ + health.d/am2320.conf \ health.d/apache.conf \ health.d/apcupsd.conf \ health.d/backend.conf \ diff --git a/health/health.d/am2320.conf b/health/health.d/am2320.conf new file mode 100644 index 0000000000..ddf8b704d8 --- /dev/null +++ b/health/health.d/am2320.conf @@ -0,0 +1,12 @@ +# make sure am2320 is sending stats + +template: am2320_last_collected_secs + on: am2320.temperature + calc: $now - $last_collected_t + units: seconds ago + every: 10s + warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every)) + crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every)) + delay: down 5m multiplier 1.5 max 1h + info: number of seconds since the last successful data collection + to: webmaster
\ No newline at end of file |