home
/
code
/
khatus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Normalize alert msg
[khatus.git]
/
src
/
awk
/
exe
/
actuate_alert_to_notify_send.awk
diff --git
a/src/awk/exe/actuate_alert_to_notify_send.awk
b/src/awk/exe/actuate_alert_to_notify_send.awk
index
f11b2f4
..
2cebbff
100755
(executable)
--- a/
src/awk/exe/actuate_alert_to_notify_send.awk
+++ b/
src/awk/exe/actuate_alert_to_notify_send.awk
@@
-7,10
+7,12
@@
BEGIN {
}
$1 == "OK" && \
}
$1 == "OK" && \
-$3
== "alert"
{
+$3
~ /^alert/
{
src = $2
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
# Not just using $6 for body - because body might contain a character
# identical to FS
This page took
0.022672 seconds
and
4
git commands to generate.