=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
=cut
-. "$MUNIN_LIBDIR/plugins/plugin.sh"
+. ${MUNIN_LIBDIR:=/usr/share/munin}/plugins/plugin.sh
TYPE=`basename $0 | sed 's/^.*_//g'`
if [ "$1" = "config" ]; then
- if [ "$host_name" != "" ]; then
+ if [ "x$host_name" != "x" ]; then
echo "host_name $host_name"
fi
if [ "$TYPE" = "temperature" ]; then