home
/
code
/
khatus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve overview and experiment naming
[khatus.git]
/
x2
/
src
/
awk
/
exe
/
monitor_devices.awk
diff --git a/x2/src/awk/exe/monitor_devices.awk
b/x2/src/awk/exe/monitor_devices.awk
new file mode 100644
(file)
index 0000000..
9097a9b
--- /dev/null
+++ b/
x2/src/awk/exe/monitor_devices.awk
@@ -0,0
+1,13
@@
+{
+ delete msg
+ msg_parse(msg, $0)
+}
+
+msg["module"] == "khatus_sensor_devices" && \
+msg["type"] == "data" \
+{
+ msg_out_alert_low( \
+ "BlockDeviceEvent",
+ msg["key"] " " msg["val"] " on " msg["node"]\
+ )
+}
This page took
0.026849 seconds
and
4
git commands to generate.