2 # Set the correct value as any other AWK variable:
4 # khatus_actuate_alert_to_notify_send -v Display="$CORRECT_DISPLAY"
6 Display = Display ? Display
: ":0"
14 msg
["type"] ==
"alert" {
16 sep = body ?
"\n" : ""
17 body = body sep
"--" msg
["node"] ":" msg
["module"]
18 urgency = msg
["priority"]
19 sub("hi" , "critical", urgency
)
20 sub("med", "normal" , urgency
)
24 "DISPLAY=%s notify-send -u %s %s \" %s\"",
25 Display
, urgency
, msg
["subject"], body \