ZABBIX 2.4 – 6 Unit symbols

Please Like Us!!!

6 Unit symbols

Overview

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 or item keys.

Instead of '86400' you can simply enter '1d'. Suffixes function as multipliers.

Time unit suffixes

For time you can use:

  • s – seconds (when used, works the same as the raw value)
  • m – minutes
  • h – hours
  • d – days
  • w – weeks

Time unit suffixes are supported in:

  1. trigger expressions (constants and function parameters)
  2. parameters of the zabbix[queue,<from>,<to>] internal item
  3. last parameter of aggregate checks

Prefix symbols

In both Zabbix server and frontend these prefix symbols are supported for both display and usage in trigger expressions (constants and function parameters):

  • K – kilo
  • M – mega
  • G – giga
  • T – tera

When item values other than in B, Bps are displayed in the frontend, a base of 10 is used (1K = 1000). Apart from that, base 2 is applied (1K = 1024) everywhere.

Additionally the frontend also supports the display of:

  • P – peta
  • E – exa
  • Z – zetta
  • Y – yotta

Usage examples

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(0)}<86400
{host:system.cpu.load.avg(600)}<10

could be changed to:

{host:zabbix[proxy,zabbix_proxy,lastaccess]}>2m
{host:system.uptime.last(0)}<1d
{host:system.cpu.load.avg(10m)}<10

Data source: Zabbix

Reviews & Comments

Enjoy!