Greetings all,

I am trying to do a case-insensitive match for the words “error” and “out of 
memory” on our DB servers and am not having much luck.  I saw a few threads 
from +5yrs ago but the suggestions don’t seem to work.  Also, I looked over the 
monit manual and the regex(7) man page but I am still not able to get a simple 
match working.  One thread suggests to modify the source code and recompile, 
but that does not seem to help (I downloaded and compiled monit version 5.34.4) 
.

Specifically, the syntax: "if match '(?i)error' then alert” throws the error: 
"Regex parsing error: Invalid preceding regular expression ''(?i)error’’


Any hints for an easy-to-use case-insensitive match string?

Thanks.

Reply via email to