Ad Widget

Collapse

Incorrect handling of unit types

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Yello
    Senior Member
    • Apr 2011
    • 309

    #1

    Incorrect handling of unit types

    Hi,
    I have an item that returns disk space used in bytes and have set the unit value to B. This displays the value in GB. However, I've noticed that it is dividing the value by 1024 rather than 1000...

    Can someone point me in the direction of the unit type which will convert disk bytes properly?


    Regards,
    David
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    Hi David
    Maybe not quite clear text in the manual:
    "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"

    But if I remember rigth you can use b (small b) - and that seems in line with the text
    Br
    Erik

    Comment

    • Yello
      Senior Member
      • Apr 2011
      • 309

      #3
      Hi,
      Yes, that's worked. Would you mind pointing me to the part of the manual that describes this? I looked for it but couldn't find it.


      Regards,
      David

      Comment

      • eskytthe
        Senior Member
        Zabbix Certified Specialist
        • May 2011
        • 363

        #4
        Of cause:
        http://www.zabbix.com/documentation/.../configuration
        Section 2.3.2 Items (and a bit more down)
        Br
        Erik

        Comment

        • poxeron
          Member
          • Sep 2020
          • 52

          #5

          Comment

          Working...