some docs for munin
authorChristian Weiske <cweiske@cweiske.de>
Sat, 5 Feb 2011 17:30:44 +0000 (18:30 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 5 Feb 2011 17:30:44 +0000 (18:30 +0100)
dummy-data-generator.php
munin/README [new file with mode: 0644]

index 505d133b44eec30f4a24276d0560cdc0514cf531..f4eb3c6a56f8a8fec44714945ffd8e5feaa1784c 100755 (executable)
@@ -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 (file)
index 0000000..d4acf1b
--- /dev/null
@@ -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