From c9357827d5c66c5bfbd4c48ec360a17fcfa86fa6 Mon Sep 17 00:00:00 2001 From: shakemid Date: Fri, 15 Sep 2017 21:48:29 +0900 Subject: [PATCH] Fix munin-plugin to support TEMPerHUM --- munin-plugin/temper | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/munin-plugin/temper b/munin-plugin/temper index 5734dca..3f13a7b 100755 --- a/munin-plugin/temper +++ b/munin-plugin/temper @@ -7,8 +7,12 @@ set -o nounset +# path to pcsensor pcsensor=${pcsensor:-/usr/local/bin/pcsensor} +# device number +device=${device:-0} + # need calibration # example: # env.cdef temperature,1.0287,*,0.85,- @@ -22,14 +26,26 @@ autoconf() { config() { cat <