Ad Widget

Collapse

1.4.2: Regular Expressions in Web Scenarios

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skogan
    Member
    • Nov 2007
    • 70

    #1

    1.4.2: Regular Expressions in Web Scenarios

    Hi.

    I'm trying to set up a web scenario using regular expressions to match the content, but it doesn't work - the regular expressions are being matched as literal strings.

    Is there some specific format that I should be using? Maybe Zabbix needs to be built in some special way to support regular expressions?

    thanks.
  • samwise
    Junior Member
    • Feb 2007
    • 19

    #2
    Same problem here

    I'm having the same problem - it's not working. The manual says to enter whatever string you are looking for - They say "The Homepage of ZABBIX" as an example, but I'm wondering if you have to do in the RegEx equivalent "Start of a line, Any number of charachters, My Search String".

    Comment

    • skogan
      Member
      • Nov 2007
      • 70

      #3
      I since then found out what the problem was. The problem (or, rather, a bug) is that Zabbix runs the regexes with a flag that instructs new line characters NOT to be treated as normal characters. So, normal regexes work as long as they are restricted to one line - for multiline regexes you have to specify "start of line" character (^) explicitly within the regex.

      This, by the way, is a definite bug. I started another thread about it in the "problems" section but didn't get any reaction to it yet.

      Comment

      Working...