X-Git-Url: https://git.cweiske.de/usb-wde1-tools.git/blobdiff_plain/86ce4bf61aba21124eab2e405f39283e0d7fc591..76589ea07926b0101cae599736d13e4c507c8f97:/munin/usb-wde1_ diff --git a/munin/usb-wde1_ b/munin/usb-wde1_ index 485432b..3c75c72 100755 --- a/munin/usb-wde1_ +++ b/munin/usb-wde1_ @@ -15,7 +15,7 @@ usb-wde1 - Munin plugin to report usb-wde1 temperature and humidity data =head2 EXAMPLE CONFIGURATION [usb-wde1_*] - env.logfile /tmp/usb-wde1-last + env.logfile /var/spool/usb-wde1/usb-wde1-last env.host_name House env.sensors 0 1 7 env.sensor0 Living room @@ -46,7 +46,7 @@ http://www.gnu.org/licenses/agpl.html =cut -. "$MUNIN_LIBDIR/plugins/plugin.sh" +. ${MUNIN_LIBDIR:=/usr/share/munin}/plugins/plugin.sh TYPE=`basename $0 | sed 's/^.*_//g'` @@ -82,7 +82,7 @@ done if [ "$1" = "config" ]; then - if [ "$host_name" != "" ]; then + if [ "x$host_name" != "x" ]; then echo "host_name $host_name" fi if [ "$TYPE" = "temperature" ]; then