Incorrect unit conversion in "Website by Browser" template: "Navigation resource fetch time" is divided by 1000 twice.

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 7.0.22
    • Component/s: Server (S)
    • None

      Hello,
      I believe there is a logic error in the "Website by Browser" template regarding the unit conversion for navigation timing items.{}

      The dependent item Navigation resource fetch time (and potentially other timing items) has a preprocessing step Custom multiplier: 0.001. However, the master item (the script that retrieves data) appears to already return the value in Seconds, not Milliseconds.

      As a result, the value is divided by 1000 twice, resulting in an incorrect, extremely small value.

      Steps to reproduce:

      1. Import the "Website by Browser" template.
      2. Configure a host with a valid URL and execute the master item.
      3. Check the raw JSON output from the master item.
         - Observed Value Example: 0.45 (This represents 0.45 seconds).
      4. Check the calculated value of the dependent item Navigation resource fetch time.

       

       

      Preprocessing: Custom multiplier 0.001.

      Result:

       Result: 0.00045 (This is incorrect; it implies 0.45 milliseconds).

      Expected:
       The preprocessing step Custom multiplier: 0.001 should be removed if the script returns Seconds. OR The script should return Milliseconds (standard W3C format) to match the preprocessing configuration.

       

            Assignee:
            Zabbix Support Team
            Reporter:
            Kotaro Miyashita
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: