I am working on an alert where the alert action is a tclproc.
I am trying to take the info in %A and just display the first part. For example:
%A is:
Thread outbound queue depth (523) of MY_THREAD is more than or equal to 500, currently {SOME_THREAD 0} {MY_THREAD 523} {SOME_OTHER_THREAD 6}
I just want:
Thread outbound queue depth (523) of MY_THREAD is more than or equal to 500, currently
When I test on the command line, both of these seem to put the value I want into $alert:
regexp ([^{]*){ %A match alert
regexp ([^{]*){ %A match alert
However, in the alert configurator, the first is not even allowed (errors with TCL code cannot contain unmatched braces) and the second fails to load properly so nothing happens.
Is there some other escape character or something I should be using here to make this work?
Thanks!
-Kenadi Moore
OhioHealth