[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Case insensitive regex for MATCH - possible?

From: Sebastian Arcus
Subject: Case insensitive regex for MATCH - possible?
Date: Mon, 8 Jan 2018 21:57:32 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Hello list. I might be missing something really obvious, but is it possible to do case insensitive matching with regex's in Monit? There doesn't seem to be anything about it in the docs, and bizarrely nothing relevant when searching in Google (to do strictly with regex's in Monit). I've tried something like:

IF MATCH "(?i)banned|blacklist" THEN ALERT


IF MATCH "/banned|blacklist/?i" THEN ALERT

Monit doesn't seem to like either. I've tried various ways suggested online for Javascript, Python etc. regular expressions - but so far I haven't been able to figure the right syntax. Any hints please?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]