Having to use some large numbers, for example '86400' to represent the number of seconds in one day, is both difficult and error-prone. This is why you can use some appropriate unit symbols (or suffixes) to simplify Zabbix trigger expressions and item keys.若使用一些大数字时,例如'86400'来表示一天中的秒数,既困难又容易出错。 这就是您可以使用一些适当的单位符号(或后缀)来简化Zabbix trigger表达式和 item key的原因。
Instead of '86400' for the number of seconds you can simply enter '1d'. Suffixes function as multipliers.您可以直接输入'1d',而不是'86400'的秒数。后缀d用作乘数。
For time you can use您可使用如下:
Time suffixes are supported in:以下支持时间后缀:
Memory size suffixes are supported in trigger expression constants and function parameters.触发器expression 常量和函数参数支持内存大小后缀。
For memory size you can use对于内存大小,用法如下:
Unit symbols are also used for a human-readable representation of data in the frontend.单位符号还用于前端数据,人们可读的表示法。
In both Zabbix server and frontend these symbols are supported:在Zabbix服务器和前端都支持这些符号:
When item values in B, Bps are displayed in the frontend, base 2 is applied (1K = 1024). Otherwise a base of 10 is used (1K = 1000).当B,Bps中的监控项值显示在前端时,应用基数2(1K = 1024), 否则使用10的基数(1K = 1000)。
Additionally the frontend also supports the display of:此外,前端还支持以下显示:
By using some appropriate suffixes you can write trigger expressions that are easier to understand and maintain, for example these expressions: 通过使用一些适当的后缀,您可以编写更易于理解和维护的触发器表达式,例如以下表达式:
{host:zabbix[proxy,zabbix_proxy,lastaccess]}>120
{host:system.uptime[].last()}<86400
{host:system.cpu.load.avg(600)}<10
{host:vm.memory.size[available].last()}<20971520
could be changed to: 可以改为: