Hi All,
I create a very small patch to add suport to LITERAL VALUES on zabbix.
The default way of Zabbix presentation of a numeric item is liked:
Value | Zabbix presentation
1 | 1
1000 | 1K
10000 | 10K
In most of cases is a good soluction because the size of numbers (1.000.000) BUT, in some cases, we need to get the LITERAL VALUE on charts.
Example? You need to monitoring the amount of printed pages on your printers.
In this case you need a chart with 10.000 value... not a 10k value because your customer is not a tecnical is a end user and need the real, literal value.
For put to work you need to modify the file: "func.inc.php" and add 3 lines (in my patch I add 4 lines to add a comment about the code):
This lines need to be added inside the function "convert_units" (in zabbix 1.8.9 is after line 474).
I make a post about this in my blog and put the patch available: http://spinola.net.br/blog/?p=124
Best Regards,
SpawW
I create a very small patch to add suport to LITERAL VALUES on zabbix.
The default way of Zabbix presentation of a numeric item is liked:
Value | Zabbix presentation
1 | 1
1000 | 1K
10000 | 10K
In most of cases is a good soluction because the size of numbers (1.000.000) BUT, in some cases, we need to get the LITERAL VALUE on charts.
Example? You need to monitoring the amount of printed pages on your printers.
In this case you need a chart with 10.000 value... not a 10k value because your customer is not a tecnical is a end user and need the real, literal value.
For put to work you need to modify the file: "func.inc.php" and add 3 lines (in my patch I add 4 lines to add a comment about the code):
Code:
// Special processing with literal ronded values
if($units == 'literal'){
return round($value, ZBX_UNITS_ROUNDOFF_UPPER_LIMIT);
}
I make a post about this in my blog and put the patch available: http://spinola.net.br/blog/?p=124
Best Regards,
SpawW
Comment