Normalize alert msg
[khatus.git] / src / awk / exe / actuate_alert_to_notify_send.awk
index f11b2f4..2cebbff 100755 (executable)
@@ -7,10 +7,12 @@ BEGIN {
 }
 
 $1 == "OK" && \
-$3 == "alert" {
+$3 ~ /^alert/ {
     src      = $2
-    priority = $4
-    subject  = $5
+    key      = $3
+    split(key, key_parts, Kfs)
+    priority = key_parts[2]
+    subject  = key_parts[3]
 
     # Not just using $6 for body - because body might contain a character
     # identical to FS
This page took 0.01864 seconds and 4 git commands to generate.