Ad Widget

Collapse

Web monitoring, check result page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hardtofi
    Member
    • Jan 2008
    • 32

    #1

    Web monitoring, check result page

    Hi

    I've set up a web monitor (after a recompile with WEB Monitoring on, the GUI didn't warn me about that when creating a monitor without actually having support for it) and it works fine.

    The page I want to monitor has to have this string in it <strong>(\d{4,*})<\/strong>. The number here must be above 5000, is there any way I can check the value of the number or will I have to hack up some script checking the actual value?
  • hardtofi
    Member
    • Jan 2008
    • 32

    #2
    I still haven't figured out a way of doing this from the "Web monitoring". Isn't it possible?

    The closest I've come is setting required to "my number=[0-9][0-9][0-9][0-9][0-9]*" assuring me it's at least 1000, but I really need it to be more exact.

    Comment

    • skogan
      Member
      • Nov 2007
      • 70

      #3
      As far as I recall extended posix regexes are used, so then the following should work:

      ([1-9][0-9]+)|([5-9])[0-9][0-9][0-9]

      BTW, regexes in zabbix have a nasty undocumented feature: They are compiled with a flag that causes new lines to be treated NOT as regular characters. So, essentially, the expression ".*" does not match a new line.

      In my opinion, this is very counterintuitive and should be fixed. I even made a patch:

      Comment

      Working...