[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Case insensitive regex for MATCH - possible?
From: |
Tino Hendricks |
Subject: |
Re: Case insensitive regex for MATCH - possible? |
Date: |
Tue, 9 Jan 2018 10:02:50 +0100 |
Not having the need nor tested it, but the manual states regex is used
according to http://man7.org/linux/man-pages/man7/regex.7.html
Best
Tino
Am 8. Januar 2018 um 22:58:26, Sebastian Arcus
(address@hidden(mailto:address@hidden)) schrieb:
> 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
>
> or
>
> 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?
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general