Ad Widget

Collapse

Compare Traffic with 24h before traffic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • viniciusmbo
    Junior Member
    • Feb 2020
    • 1

    #1

    Compare Traffic with 24h before traffic

    Hello,

    I´m using Zabbix 3.0.

    I´m trying to create a graph that compares current traffic with 24h before traffic using time_shift parameter but it is not working.

    I created a calculated item:

    Code:
    last("ifHCInOctets[Eth-Trunk0.1753]",86400)/last("ifHCInOctets[Eth-Trunk0.1753]")
    But this formula only returns 1.

    Thank you in advance.
    Last edited by viniciusmbo; 18-02-2020, 16:39.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    When you created the Caclulated item, what "Type of information" did you select? Did you switch it from "Numeric (unsigned)" to "Numeric (float)"? When doing division, that might make a difference.

    Comment


    • viniciusmbo
      viniciusmbo commented
      Editing a comment
      I tried both options, but with the same results, Always 1.

      If I create a calculated item with two diferent items it Works and the results are not Always 1.

      this code, for example works.

      last("ifHCInOctets[Eth-Trunk0.1753]")/last("ifHCOutOctets[Eth-Trunk0.1753]")
Working...