Hello everyone.
I have a very mysterious problem with Zabbix web monitoring and using regular expressions to check fetched content.
I have a web check scenario with one step and that step includes fetching an HTML-page and checking for its contents. The only that the fetched file contains is the text
and nothing else. I then try to match it with a regular expression pattern
but the test always fails. If I change the test to for example
it works fine, but for example these do not:
On the other hand I have similar test with files containing
and patterns
and they work fine.
It seems that the underscore is the source of the problems, but how can it be??? Unfortunately I have to check for that exact string and I cannot change that.
Anyone having an idea what is going on? Or if someone of you has some web checks working, could you try if that underscore really is the problem, or if I'm just having some weird personal penalty.
With kind regards
Pekka
a new and confused Zabbix user
I have a very mysterious problem with Zabbix web monitoring and using regular expressions to check fetched content.
I have a web check scenario with one step and that step includes fetching an HTML-page and checking for its contents. The only that the fetched file contains is the text
Code:
HTML_JSP
Code:
^HTML_JSP$
Code:
^HTML
Code:
^HTML_ , ^HTML_JSP , ^HTML.JSP , HTML_JSP , JSP$
Code:
OK
Code:
^OK$
It seems that the underscore is the source of the problems, but how can it be??? Unfortunately I have to check for that exact string and I cannot change that.
Anyone having an idea what is going on? Or if someone of you has some web checks working, could you try if that underscore really is the problem, or if I'm just having some weird personal penalty.
With kind regards
Pekka
a new and confused Zabbix user
Comment