Ad Widget

Collapse

Web Scenario / regex issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jgerry
    Junior Member
    • Jul 2009
    • 15

    #1

    Web Scenario / regex issue

    Getting together some web scenarios for work, and usually this hasn't been a problem -- once we patched and recompiled to fix the bug that kept searches from working across newlines... Anyway...

    It's been pretty easy creating scenarios that match, say, the word "online", showing that some of our apps are online. When we don't get that match, the trigger goes off that the app is down.

    I now have a situation where I need to do a negative match. In other words, I need the positive condition to be that the word "offline" does NOT appear in the page. If it does, we fire a trigger. This should be simple to do with a negative lookahead regex like this:

    .*((?![Oo]ffline).)*
    Unfortunately, Zabbix doesn't like this.

    Anyone have any other ideas here? I know the Zabbix regex engine isn't the most robust, but this seems like something that should work.
  • tvtue
    Member
    • Sep 2012
    • 71

    #2
    Hello jgerry,

    have you found a solution for this? And if yes, can you provide it please?

    TIA
    tvtue

    Comment

    • Brutje
      Junior Member
      • Oct 2014
      • 1

      #3
      Update

      Dear all,

      I also wont to include a negative lookahead in the required String for a Web Scenario.
      (Need no be sure that the word 'disabled' is not present on some status page.

      I'm also struggling to get it done rigth.

      Any clues how this can be resolved ?

      Kind regards,

      Comment

      Working...