Ad Widget

Collapse

Don't multiply by 1000 items when its raw value exceeds 1000

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NeoFireRaziel
    Junior Member
    • Sep 2013
    • 16

    #1

    Don't multiply by 1000 items when its raw value exceeds 1000

    Is there any way to avoid that Zabbix to multiply by 1000 automatically items when its raw value exceeds 1000? As say in the manual:

    "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 problem is that I'm reading a values expressed in mv (mili volts)so, for example, if the value is 12536 mV by default Zabbix aumatically shows it as "12.53 KmV"!

    I tried using a "custom multiplier" (0.001), but it doesn't work. In that case the shown value was "12.53 mV"

    So, any knows how to do it? Thanks a lot and best regards,

    Mauro.


  • NeoFireRaziel
    Junior Member
    • Sep 2013
    • 16

    #2
    Sorry folks, I found a partial solution:

    Simple use a "V" as units and "0.001" as custom multiplier and now the shown value is "12.53 V". It works for me now, but what if i want to show the value in mV???

    So, if any of you knows how to avoid Zabbix to automatically multiply items when its raw value exceeds 1000 I really appreciate your help.

    Best regards,

    Mauro.

    Comment

    • ArtemK
      Senior Member
      • May 2013
      • 232

      #3
      Hi Mauro,

      it's called unit blacklist. Register and vote for this issue if you want to help

      Meanwhile you could add your "mV" unit manually to blacklist, located in
      /usr/share/zabbix/include/func.inc.php
      (at least on CentOS, path may be different on your system)
      Code:
      // any other unit
      // black list of units that should have no multiplier prefix (K, M, G etc) applied
      $blackList = array('%', 'ms', 'rpm', 'RPM');

      Comment

      • NeoFireRaziel
        Junior Member
        • Sep 2013
        • 16

        #4
        Thanks a lot! I confirm that is the same path in Debian Wheezy using Zabbix 2.2.

        Best regards,

        Mauro.

        Comment

        • stele
          Junior Member
          • Feb 2017
          • 2

          #5
          Change email allerts variable presentation from K to Whole Numbers

          Adding the unit in blacklist risolve the problem in web but not in the variable in the email allerts

          Comment

          Working...