X-Git-Url: https://git.cweiske.de/usb-wde1-tools.git/blobdiff_plain/b565a8c2c93a241c9260e069276d2376a719da9e..86ce4bf61aba21124eab2e405f39283e0d7fc591:/munin/README?ds=sidebyside diff --git a/munin/README b/munin/README index 624e5c0..c0ba522 100644 --- a/munin/README +++ b/munin/README @@ -20,8 +20,6 @@ Setup line with temperature data into a log file. You can do that manually with $ socat /dev/ttyUSB0,b9600 STDOUT |./munin/log-single-line.sh test.log - or - $ ./dummy-data-generator.php |./munin/log-single-line.sh test.log The most easy way is to run $ cd munin && nohup ./usb-wde1-log-last.sh & @@ -50,6 +48,27 @@ Setup - should display the plugin configuration with all environment variables set $ munin-run usb-wde1_temperature + $ munin-run usb-wde1_humidity - should display the current values from the log file 5. You are done - enjoy. + + + +Debugging & Development +----------------------- +The dummy data generator is a small php script that generates log lines +as they would come from the usb-wde1 usb port: +$ ./dummy-data-generator.php |./munin/log-single-line.sh test.log + +Local (non-installed) plugin setup: +$ cd munin +$ ln -s usb-wde1_ usb-wde1_temperature +$ ln -s usb-wde1_ usb-wde1_humidity +$ cd .. + + +Running the munin plugin for development purposes is also relatively easy +since you can pass the environment configuration variables +from the munin configuration on the command line: +$ MUNIN_LIBDIR=/usr/share/munin/ logfile=test.log sensors="0 1 7" ./munin/usb-wde1_temperature