Ad Widget

Collapse

Modifying Zabbix Units Rounding

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brenton
    Junior Member
    • Jun 2016
    • 2

    #1

    Modifying Zabbix Units Rounding

    Hi,

    Looking to stop zabbix from rounding anything on the frontend.

    Example value received:
    1700000

    Custom multiplier applied:
    0.001

    Frontend value appears as:
    1.7KkWh

    I intend for it to appear as:
    1700 kWh

    I think I just need to modify ZBX_UNITS_ROUNDOFF settings but I don't understand how it functions exactly. If someone could help me with this, that would be great!

    Thanks,

    Brenton
  • resveld
    Junior Member
    • Jul 2016
    • 2

    #2
    If you want to do it just for the Kwh, you could just change the func.inc.php file.

    There's a setting in includes/func.inc.php called "blackList" and just add Kwh to it.

    It should stop giving you rounded for Kwh then.

    Comment

    • brenton
      Junior Member
      • Jun 2016
      • 2

      #3
      Thanks resveld that was what I was looking for!

      Comment

      • resveld
        Junior Member
        • Jul 2016
        • 2

        #4
        You're welcome Brenton!

        Comment

        • glebs.ivanovskis
          Senior Member
          • Jul 2015
          • 237

          #5
          Also vote for https://support.zabbix.com/browse/ZBXNEXT-768

          Comment

          Working...