Ad Widget

Collapse

1K = 1024 or 1K = 1000 ?? -> let's stop making people guess

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • regi
    Junior Member
    • Aug 2011
    • 6

    #1

    1K = 1024 or 1K = 1000 ?? -> let's stop making people guess

    1
    if item unit is B - displayed units suffixes should be:
    KiB
    MiB
    GiB
    etc



    2
    imo it's good idea to add additional option in item creation/edit form

    so people can chose display format:
    - normal (k, M, G, ... = x 1000)
    - binary prefixes (Ki, Mi, Gi, ... = x 1024)
    - unixtime – translated to “yyyy.mm.dd hh:mm:ss”
    - uptime – translated to “hh:mm:ss” or “N days, hh:mm:ss”
    - s – translated to “yyy mmm ddd hhh mmm sss ms”
    - as it is (like rpm % ect)

    but additional column in items table is needed so it can be only target for zabbix 2.0

    now u can use Unist field and do it this way:


    If set, Zabbix will add the unit postfix to all received values.
    Till Zabbix 1.8.2, default multiplier is 1024, and some units have special processing:
    b, bps - 1000 is 1K, special processing for bits.
    Since Zabbix 1.8.2, default multiplier is 1000, and special processing is used for units B, where multiplier is 1024.
    For example, if units are set to B, Zabbix will display:
    1 as 1B
    1024 as 1KB
    1536 as 1.5KB
    Since Zabbix 1.8.8, default multiplier is 1000, and special processing is used for units iB and ib, where multiplier is 1024.
    For example, if units are set to iB, Zabbix will display:
    1 as 1B
    1024 as 1KiB
    1536 as 1.5KiB

    unixtime – translated to “yyyy.mm.dd hh:mm:ss”
    uptime – translated to “hh:mm:ss” or “N days, hh:mm:ss”
    s – translated to “yyy mmm ddd hhh mmm sss ms”, parameter is treated as number of seconds. Only 3 upper major units are shown, like “1m 15d 5h” or “2h 4m 46s”. If there are no days to display, only two levels are displayed - “1m 5h” (no minutes, seconds or milliseconds are shown). Will be translated to ”< 1 ms” if the value is less than 0.001.




    EDIT:
    and triggers
    i have one defined like this:
    used bandwidth is to high {switch:if.Fa5.In.last(0)}>3.9M

    i don't know - its activating when used bandwidth is over 3.9*1024*1024 ? or 3.9*1000*1000

    but server should calculate it like this:

    {switch:if.Fa5.In.last(0)}>3.9M -> {switch:if.Fa5.In.last(0)}>3.9*1000*1000
    {switch:if.Fa5.In.last(0)}>3.9Mi -> {switch:if.Fa5.In.last(0)}>3.9*1024*1024
    Last edited by regi; 08-09-2011, 22:43.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    You raised excellent topic. I absolutely with you, it must be standardized and made much more user friendly. Would you mind to create a feature request at https://support.zabbix.com/browse/ZBXNEXT so it won't be forgotten?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • regi
      Junior Member
      • Aug 2011
      • 6

      #3
      ok
      done
      i hope that this is what u want frmo me

      Comment

      Working...