Ad Widget

Collapse

How to prevent zabbix from showing large numbers in exponent format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dade
    Member
    • Jan 2021
    • 34

    #1

    How to prevent zabbix from showing large numbers in exponent format

    Hello guys

    i have a item that get a binary number, but the zabbix is showing that formate : 1.111E+15

    How can i avoid this ?

    Thanks in advanced

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

    #2
    add ! in units.
    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
    Special processing is used if the following time-related units are used:
    unixtime - translated to “yyyy.mm.dd hh:mm:ss”. To translate correctly, the received value must be a Numeric (unsigned) type of information.
    uptime - translated to “hh:mm:ss” or “N days, hh:mm:ss”
    For example, if you receive the value as 881764 (seconds), it will be displayed as “10 days, 04:56:04”
    s - translated to “yyy mmm ddd hhh mmm sss ms”; parameter is treated as number of seconds.
    For example, if you receive the value as 881764 (seconds), it will be displayed as “10d 4h 56m”
    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.
    Note that if a unit is prefixed with !, then no unit prefixes/processing is applied to item values. See unit conversion.

    Comment

    • dade
      Member
      • Jan 2021
      • 34

      #3
      hello cyber, i tried this, but didnt work for 1.111E+15 formats.

      Comment

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

        #4
        binary as 10101010101010 ?
        Ok.. exactly where it shows as 1.111E+15? I don't have any issues submitting 16 digit number and see it in full form under latest data... On a graph it tries to show it as P(eta). But right, when setting units to "!", it displays full numbers on graph also...
        Cannot replicate your issue here... need more data.. item config, where you see that number etc..

        Comment

        • dade
          Member
          • Jan 2021
          • 34

          #5
          Hello, Cyber

          Thanks for your answer.

          I did some dependent items and it worked!

          Cya

          Comment

          Working...