Ad Widget

Collapse

Change graphs from K to Whole Numbers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Change graphs from K to Whole Numbers



    How do I change this? I can't find anywhere to make Zabbix display whole numbers. I didn't specify a unit of measure so why is it defaulting to a unit of measure?

    #2
    well, it does not add units - it just adds the multiplier so that things fot on axis labels etc.

    in 1.8.3, there are only few units that are blacklisted for multipliers - namely, ms, RPM, rpm and % - all other get K, M, G etc multipliers.

    possibility to configure multiplier usage on item level has been discussed, but it's not really that high on the priority list
    you could search tracker for existing feature requests on this and vote on them (or create a new one if none are found)
    Zabbix 3.0 Network Monitoring book
    Zabbix tips and inspiration (blog)

    Comment


      #3
      What if you simply allowed users to change the array of blacklisted units. That way, we could add 'users', 'licenses' or whatever we like to the blacklist array, and give the respective items these units.

      Right now, this can be done by hacking include/func.inc.php and modifying this line:
      Code:
              $blackList = array('%','ms','rpm');
      Simply moving that array to a configurable value would be enough.

      Comment


        #4
        Finally got around to doing this.



        did this by changing the line above to

        Code:
        $blackList = array('%','ms','rpm','as');
        once completed, I added the unit "as" to my item and the results are shown above. Hope this helps someone.
        Last edited by Axilla; 28-04-2011, 19:49.

        Comment


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

          I resume this very usefull thread for my first post and I go even slightly off topic!

          Adding my unit in the blacklist of the /usr/share/zabbix/include/func.inc.php resolves the issue in topic but the problem remains in the variable used in the alert email action definedin this way:
          {ITEM.VALUE1}
          There is not problem with the unit of measure rpm for example.
          Is there another file to edit? It would be for me a very valuable info

          Comment


            #6
            In Zabbix 3.2 - Last line "active members" changes to "as" but the graph Y axis still remains as 1.5k.

            $blackList = ['%', 'ms', 'rpm', 'RPM', 'as'];
            Any suggestions?

            Comment


              #7
              Great community and forum. I'm new to Zabbix and experienced the same problems as everyone identified above. In my use case I wanted exact values for graphs and not rounded/summarized numbers. I edited /usr/shar/zabbix/include/func.inc.php with a blacklist value

              Code:
              $blackList = ['%', 'ms', 'rpm', 'RPM', '~'];
              This resulted in the graphs Yaxis legends and the last/min/avg/max metrics appending the unit code you defined in func.inc.php. You can see this in Axilla's screenshot above, this treatment was ok but I really just wanted to have the integer displayed.

              In Zabbix 4.0 the func.inc.php code includes an IF loop that checks for a

              Code:
              !
              as the unit in your item. This is also listed in the official documentation:

              https://www.zabbix.com/documentation/current/manual/config/items/item?s[]=unit

              Note that if a unit is prefixed with !, then no unit prefixes/processing is applied to item values. See unit blacklisting.

              Comment

              Announcement

              Collapse
              No announcement yet.
              Working...
              X