X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=src%2Fawk%2Fexe%2Fmonitor_devices.awk;h=efb7b79850f71ff08955c857a93294c15716b44f;hb=1cdd2ba229f2086b9270617872de9c312adc1d11;hp=d43f67cbc6c4344b37234af78c82d0a0193f02a2;hpb=e103315c72597a9cc9fffaaff11e04b30d1c6416;p=khatus.git diff --git a/src/awk/exe/monitor_devices.awk b/src/awk/exe/monitor_devices.awk old mode 100755 new mode 100644 index d43f67c..efb7b79 --- 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"]\ + ) }