Ad Widget

Collapse

web.page.regexp and timeout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Inc0
    Member
    • Dec 2010
    • 36

    #1

    web.page.regexp and timeout

    Hello,

    does the function "web.page.regexp" have a timeout?
    I'm monitoring some .jsp and sometimes tomcat doesn't respond (leaving the page hanged up): does, in this case, web.page.regexp report a failure or not?
    If there is a timeout, how can I set it up in my checks?

    I forgot to say I'm using zabbix 1.8.3


    Thank you
    Last edited by Inc0; 03-03-2011, 17:23. Reason: more info
  • marcel
    Senior Member
    Zabbix Certified Specialist
    • Oct 2010
    • 112

    #2
    i presume you are using Zabbix agent (passive) for this item - timeout is the timeout of the zabbix agent runnig that check (3s by default I think)

    marcel
    Zabbix Certified Specialist for Large Environments since 12/2010

    Comment

    • Inc0
      Member
      • Dec 2010
      • 36

      #3
      Originally posted by marcel
      i presume you are using Zabbix agent (passive) for this item - timeout is the timeout of the zabbix agent runnig that check (3s by default I think)

      marcel
      Yes, in the item configuration windows, the type is set to "zabbix agent": if the timeout is 3 seconds, what value does web.page.regexp return after the timeout? EOF or something else? I'm asking this because if I check the latest data of the item that checks my .jsp on a server with a NOT responding tomcat, I don't see any value at all and this makes my trigger fail.
      Example:
      key: web.page.regexp[{IPADDRESS},/my.jsp,80,OK,2]
      Type of information: character

      Assuming mi check runs every minute, that's what I see in the latest data of the item:
      2011.Mar.02 17:56:00 OK
      2011.Mar.02 17:57:00 OK
      ---NO DATA AT ALL. At this point I restarted tomcat ---
      2011.Mar.02 18:01:00 OK

      Does it work as intended?


      Thx

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Originally posted by Inc0
        Yes, in the item configuration windows, the type is set to "zabbix agent": if the timeout is 3 seconds, what value does web.page.regexp return after the timeout? EOF or something else?
        It does return EOF in case of timeout, no match, or any other failures. I updated Zabbix documentation to make it clear.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • Inc0
          Member
          • Dec 2010
          • 36

          #5
          Originally posted by Alexei
          It does return EOF in case of timeout, no match, or any other failures. I updated Zabbix documentation to make it clear.
          Thank you. I'll do some test to try to figure out what's happening to my zabbix.
          I might come back to bug you once more

          Comment

          Working...