Hello PRTG Support.
We have an HTTP Advanced sensor that performs a GET on a URL that returns some text.
When the page is indicating there has been an error, the text "ERROR " will appear, followed by a number of words in all uppercase indicating the issue.
When the page is indicating there is *no* problem, the "ERROR " and subsequent text is not present. For reference, there are a number of message combinations that can follow the "ERROR " text.
I am trying to return the all of the ERROR text into an alert that is to be emailed out. I have notifications successfully firing for the error condition and the sensor is setup as follows:
1. Check for Existing Key Words (Negative) = Enabled
2. Response Must Not Include = ERROR[A-Z\s]+(?!\d)
3. For Keyword Search Use = Regular Expression
However, when the notifications fire, we receive the following in the email:
"Last Message Error: String found [ERROR[A-Z\s]+(?!\d)]"
Why doesn't the "Last Message" contain the text that the regex matched, as opposed to the regex itself...this seems very not useful.
Am I missing something?
Many thanks for your time on this.