Ad Widget

Collapse

Dashboard shows bytes not multiplied in Kb, Mb, Gb, etc.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robertdb
    Junior Member
    • Oct 2011
    • 11

    #1

    Dashboard shows bytes not multiplied in Kb, Mb, Gb, etc.

    Hi,

    I have a trigger to alert on disk space. That trigger description reads:
    Drive {$DRIVELETTER} has {ITEM.VALUE1}% remaining ({ITEM.VALUE2} bytes)

    This always displays the number of bytes remaining in bytes, which can be a long (unreadable) number, see screenshot:


    Would it be possible to display this in Kb, Mb, Gb, etc? That would make the alert and the dashboard far more readable.

    Regards,

    Robert de Bock
    Attached Files
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    You have to set "Units" (B) for your item:
    http://www.zabbix.com/documentation/...fig/items/item
    br
    Erik

    Comment

    • robertdb
      Junior Member
      • Oct 2011
      • 11

      #3
      That's not it.

      Hi,

      The "Units" were already set to "B" (bytes).

      Setting the Units to one of the described values (B, unixtime, uptime or s) does have an effect on the graphs, but not on the values displayed in the dashboard. I guess this is because the trigger needs to be calculated using "raw" (not multiplied) values.

      I would expect the solution to be in the trigger name, now set to:
      "Drive {$DRIVELETTER} has {ITEM.VALUE1}% remaining ({ITEM.VALUE2} bytes)"

      Maybe something like this is required:
      Drive {$DRIVELETTER} has {ITEM.VALUE1}% remaining ({ITEM.VALUE2:Mb} bytes)
      (Please not, this is not actually a function, just and example)

      I also tried to do a calculation in the trigger description. This did not work. I used this for the trigger description:
      Drive {$DRIVELETTER} has {ITEM.VALUE1}% remaining ({ITEM.VALUE2/1024/1024} Mb)
      and
      Drive {$DRIVELETTER} has {ITEM.VALUE1}% remaining ({ITEM.VALUE2}/1024/1204 Mb)

      Would be very helpful if somebody has done something like this and shared the way to do it.

      Regards,

      Robert de Bock.

      Comment

      • pantera
        Member
        • Dec 2014
        • 39

        #4
        Originally posted by eskytthe
        You have to set "Units" (B) for your item:
        http://www.zabbix.com/documentation/...fig/items/item
        br
        Erik
        is it possible to show value only as KB, not to calculate to MB GB?

        Comment

        Working...