home
/
code
/
khatus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Redesign message format
[khatus.git]
/
src
/
awk
/
exe
/
monitor_devices.awk
diff --git
a/src/awk/exe/monitor_devices.awk
b/src/awk/exe/monitor_devices.awk
index
d43f67c
..
efb7b79
100755
(executable)
--- a/
src/awk/exe/monitor_devices.awk
+++ b/
src/awk/exe/monitor_devices.awk
@@
-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.025012 seconds
and
4
git commands to generate.