13130ccff25b1315b862429c245da33c3520d05a
[khatus.git] / src / awk / exe / monitor_errors.awk
1 /^ERROR/ {
2 src = $2
3 # Not just using $3 for body - because body might contain a character
4 # identical to FS
5 len_line = length($0)
6 len_head = length($1 FS $2 FS)
7 len_body = len_line - len_head
8 body = substr($0, len_head + 1, len_body)
9 msg_out_ok_alert("hi", "ERROR_IN_" src, body)
10 }
This page took 0.043806 seconds and 3 git commands to generate.