Ad Widget

Collapse

webpage perf Problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Parasin
    Member
    Zabbix Certified Specialist
    • Dec 2014
    • 53

    #1

    webpage perf Problems

    [SOLVED]

    Hello all,
    First post in this community and am relatively new to Zabbix!
    I am trying to configure an item that would allow me to create a graph of page response times. I initially tried to setup a web scenario, but was unsuccessful.
    I am getting data being returned as all zeroes. Any idea on how to troubleshoot this problem?

    The configuration of my items can be seen in the attachment.
    My key is the following:
    Code:
    web.page.perf[<my page url>,,443]
    Attached Files
    Last edited by Parasin; 19-12-2014, 16:26. Reason: Problem solved in below post
  • Parasin
    Member
    Zabbix Certified Specialist
    • Dec 2014
    • 53

    #2
    bump
    Any ideas of where I could try to look or what to adjust is appreciated! Thanks!

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      Please, keep an eye on the examples in documentation.
      The Key has to look like: (my own example)
      Code:
      # zabbix_get -s localhost -k web.page.perf[mail.google.com,,443]
      0.049064
      In your case, when you getting zero, it means "Fail" (from https://www.zabbix.com/documentation...=page&s[]=perf
      Code:
      Returns 0 on fail.
      Try to remove leading "https://" and use port number as third parameter.
      Sincerely yours,
      Aleksey

      Comment

      • Parasin
        Member
        Zabbix Certified Specialist
        • Dec 2014
        • 53

        #4
        Unfortunately that did not work!

        I tried to adjust my key to fit your example, but it did not work.
        I am still getting the data returning all zeroes (fail). I can't understand why!

        I also tried setting thi sup again as a web scenario, to no avail!

        Comment

        • aib
          Senior Member
          • Jan 2014
          • 1615

          #5
          OK.
          This is how I made my key.
          1) Check curl with correct link, and be sure that you are getting any data.
          Code:
          >#[B] curl -s http://www.onlineconversion.com/unix_time.htm | head -10[/B]
          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          <html>
          <head>
          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
          <title>Online Conversion - Unix time conversion</title>
          <meta name="DESCRIPTION" content="Convert Unix time to a readable date">
          <meta name="KEYWORDS" content="unix, UT, GMT, seconds, epoch, milliseconds">
          <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
          <!--
            function timeToHuman()
          2) convert URL from curl commandline to web.page.perf parameter and check it manually.
          Code:
          zabbix_get -s localhost -k web.page.perf[www.onlineconversion.com,unix_time.htm]
          As you can see, I removed "http://", the slash after web-name, and separate the name of page by comma.

          In case of https: web-site, you have to add port number after the name of page.
          Code:
          # zabbix_get -s localhost -k web.page.perf[mail.google.com,,[B]443[/B]]
          3) After the successful manual check, you can add/configure Key for collecting data about web.perf.
          Last edited by aib; 17-12-2014, 21:37.
          Sincerely yours,
          Aleksey

          Comment

          • Parasin
            Member
            Zabbix Certified Specialist
            • Dec 2014
            • 53

            #6
            [solved]

            Thanks for your help, I ended up getting it to work by setting up a web scenario. I appreciate your time and showing me that method!

            Comment

            Working...