diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2011-02-05 18:30:44 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2011-02-05 18:30:44 +0100 |
| commit | 92adea5c7e553da27074eb5aafbceb4fc6b814a5 (patch) | |
| tree | bc501597fd11c7216b5f1b3603f379ca496e4f5e | |
| parent | fbed7b5466dbb2647a5cf35c65a4c6543689c656 (diff) | |
| download | usb-wde1-tools-92adea5c7e553da27074eb5aafbceb4fc6b814a5.tar.gz usb-wde1-tools-92adea5c7e553da27074eb5aafbceb4fc6b814a5.zip | |
some docs for munin
| -rwxr-xr-x | dummy-data-generator.php | 3 | ||||
| -rw-r--r-- | munin/README | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/dummy-data-generator.php b/dummy-data-generator.php index 505d133..f4eb3c6 100755 --- a/dummy-data-generator.php +++ b/dummy-data-generator.php @@ -1,5 +1,8 @@ #!/usr/bin/env php <?php +/** + * Generates dummy data as a usb-wde1 would generate + */ $arChannels = array(0, 1, 2, 3, 4, 7); $data = array( diff --git a/munin/README b/munin/README new file mode 100644 index 0000000..d4acf1b --- /dev/null +++ b/munin/README @@ -0,0 +1,8 @@ +1. Keep a logfile with the most recent single line +2. Use the munin plugin to generate munin-compatible data from the log file + + +Short: + socat /dev/ttyUSB0,b9600 STDOUT |./munin/log-single-line.sh test.log +or + ./dummy-data-generator.php |./munin/log-single-line.sh test.log |
