Hi,
In v5.2 regsub functions don't work any more...
My message looks like:
The resulting message looks like this:
The regsub function is not executed but included as plain text...?!
This worked fine in v4.2.
Any idea on how to fix this?
In v5.2 regsub functions don't work any more...
My message looks like:
Code:
Problem started at {EVENT.TIME} on {EVENT.DATE}
Problem name: {EVENT.NAME}
Item Name: {ITEM.NAME}
Item Key: {ITEM.KEY}
Item Last Value: {EVENT.OPDATA}
Tags: {EVENT.TAGS}
ZMM Component: {{EVENT.NAME}.regsub("^.*[(.*)])", "\1")}
ZMM Severity: {EVENT.SEVERITY}
ZMM Problem ID: {EVENT.ID}
{TRIGGER.URL}
The resulting message looks like this:
Code:
Problem started at 14:45:27 on 2021.09.21
Problem name: Solarwinds P1 [JACAIBNS01] - Node is down
Item Name: Solarwinds Trap create and close
<snip>
ZMM Component: {Solarwinds P1 [JACAIBNS01] - Node is down.regsub("^.*[(.*)])", "\1")}
ZMM Severity: Disaster
ZMM Problem ID: 67274
The regsub function is not executed but included as plain text...?!
This worked fine in v4.2.
Any idea on how to fix this?