Redesign message format
[khatus.git] / src / awk / exe / monitor_devices.awk
index d43f67c..efb7b79 100755 (executable)
@@ -1,5 +1,10 @@
-$1 == "OK" && \
-$2 == "khatus_sensor_devices" \
+$2 == "khatus_sensor_devices" && \
+$3 == "data" \
 {
-    msg_out_ok_alert("low", "BlockDeviceEvent", $3 " " $4)
+    delete msg
+    msg_in_parse(msg, $0)
+    msg_out_alert_low( \
+        "BlockDeviceEvent",
+        msg["key"] " " msg["val"] " on " msg["node"]\
+    )
 }
This page took 0.024586 seconds and 4 git commands to generate.