If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
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?
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)
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.
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
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:
Comment