Ad Widget

Collapse

what is this Expression mean

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • islam
    Junior Member
    • Apr 2024
    • 19

    #1

    what is this Expression mean

    hello,
    I have an item that calc bps and I want to sum it for a week and day and hour I came up with this Expression but I am not sure the output what is it
    Code:
    sum(/ryvps02/net.if.out[eth0],1d)>100G
    can you tell me the output of this Expression
    Last edited by islam; 04-05-2024, 01:53.
  • islam
    Junior Member
    • Apr 2024
    • 19

    #2
    just expiration meaning I need to be confirmed about the results

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      sum of values (looks like outbound bytes for eth0 interface) for 1d is more than 100G... 1d here is not 00:00-24:00, but it is a sliding 24h window... from "now" 1d back.
      If you want to calculate 00-24... you need to use time shift.. https://www.zabbix.com/documentation...ion#time-shift

      Comment

      • islam
        Junior Member
        • Apr 2024
        • 19

        #4
        Originally posted by cyber
        sum of values (looks like outbound bytes for eth0 interface) for 1d is more than 100G... 1d here is not 00:00-24:00, but it is a sliding 24h window... from "now" 1d back.
        If you want to calculate 00-24... you need to use time shift.. https://www.zabbix.com/documentation...ion#time-shift
        what you mean by sliding 24h window

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #5
          Originally posted by islam

          what you mean by sliding 24h window
          It is written there in next sentence...
          "from "now" 1d back"

          Comment

          • islam
            Junior Member
            • Apr 2024
            • 19

            #6
            Originally posted by cyber
            sum of values (looks like outbound bytes for eth0 interface) for 1d is more than 100G... 1d here is not 00:00-24:00, but it is a sliding 24h window... from "now" 1d back.
            If you want to calculate 00-24... you need to use time shift.. https://www.zabbix.com/documentation...ion#time-shift
            this that what you mean can you tell me now what value I will get also how to read this, it is my biggest problem in zabbix
            Code:
            sum(/ryvps01/net.if.out[eth0],1d:now/d+1d)> 100G
            Last edited by islam; 13-05-2024, 23:52.

            Comment

            • cyber
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2006
              • 4807

              #7
              Obvious....
              From here : https://www.zabbix.com/documentation...ions/aggregate
              sum (/host/key,(sec|#num)<:time shift>)
              Sum of collected values within the defined evaluation period.
              and from here : https://www.zabbix.com/documentation...ion#time-shift
              1d:now/d+1d Today

              Your expression is "sum of values for today (starting from midnight) is more than 100G"...​

              Comment

              Working...