Ad Widget

Collapse

Issue with item unit (disk size)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eansp
    Junior Member
    • Aug 2017
    • 11

    #1

    Issue with item unit (disk size)

    I am trying to monitor disk space for a Dell SC2020 via SNMP. The OID value reports in GB.

    Example from SNMP query:
    Name/OID: scDiskFolderSUTotalSpace.2; Value (Gauge): 24964

    Item Screenshot:
    Click image for larger version

Name:	Screenshot 2020-12-02 164954.png
Views:	1885
Size:	13.5 KB
ID:	414432

    When I specify GB in Units, Latest Data shows KGB. I refer to Unit Symbols in the documentation, and use G, but I get KG.

    Click image for larger version

Name:	Screenshot 2020-12-02 165249.png
Views:	2027
Size:	2.6 KB
ID:	414433

    Ideally, I want it to be displayed in TB as a float.

    I am currently using Zabbix 5.0
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Use units B - the system will add the prefixes itself

    It's good that you read the documentation! Bad - the wrong section.

    https://www.zabbix.com/documentation...fig/items/item
    Units If a unit symbol is set, Zabbix will add post processing to the received value and display it with the set unit postfix.
    By default, if the raw value exceeds 1000, it is divided by 1000 and displayed accordingly. For example, if you set bps and receive a value of 881764, it will be displayed as 881.76 Kbps.
    The JEDEC memory standard is used for processing B (byte), Bps (bytes per second) units, which are divided by 1024. Thus, if units are set to B or Bps Zabbix will display:
    1 as 1B/1Bps
    1024 as 1KB/1KBps
    1536 as 1.5KB/1.5KBps
    Last edited by Hamardaban; 03-12-2020, 02:36.

    Comment

    • eansp
      Junior Member
      • Aug 2017
      • 11

      #3
      Thank you for the information. I made the change, and now it is reporting in KB, and not GB. I tried changing from a float to unsigned, and it reported the same number displayed below.

      Click image for larger version

Name:	Screenshot 2020-12-03 083558.png
Views:	1915
Size:	13.5 KB
ID:	414521

      Click image for larger version

Name:	Screenshot 2020-12-03 083641.png
Views:	2014
Size:	2.5 KB
ID:	414522

      Is there some preprocessing that needs to be setup?

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        When you specify unit =B (predefined in the system), the system tries to display the received value using the prefix. If you get the number of bytes, everything will be displayed correctly. If the data element gets values in Kb and you specify B, you will get an erroneous display. Conversion: convert the resulting value to bytes using preprocessing and multiplication to get the result in bytes.

        Comment

        • eansp
          Junior Member
          • Aug 2017
          • 11

          #5
          Since the SNMP value was reporting in GB, I added a preprocessing multiplier rule for 1073741824 Bytes, or 1GB, then set Unit to B, and it calculated the correct number for TB.

          Click image for larger version

Name:	Screenshot 2020-12-03 114213.png
Views:	1968
Size:	12.9 KB
ID:	414535
          Click image for larger version

Name:	Screenshot 2020-12-03 114241.png
Views:	1971
Size:	4.4 KB
ID:	414537
          Click image for larger version

Name:	Screenshot 2020-12-03 114311.png
Views:	2061
Size:	2.4 KB
ID:	414538

          Thanks your your help and direction. Wanted to show and explain it in case anyone else had a similar situation.
          Attached Files

          Comment

          Working...