Zabbix Item Macro

In Zabbix an ‘item’ is an individual metric that gathers data from a monitored host.

Drop Zabbix Item macro on page and specify Server, Host and Item parameters.

images/wiki/download/attachments/58753285/ItemMacro.png
Item Macro

Save the page and you will see the item details:

images/wiki/download/attachments/58753285/ItemMacro2.png
Item Macro

It is possible to modify the item format. Zabbix Plugin comes with three predefined named formats:

  • default or long: icon, item name and key, value, units and value date/time

  • medium: item value and date/time

  • short: item value only

You can create custom named formats using the plugin configuration page:

images/wiki/download/attachments/58753285/ItemFormat.png
Item Formats

Item Format

Item format components are defined as follows:

  • v: latest item value

  • c: latest item clock (date and time)

  • n: item name

  • k: item key

  • d: item description (as defined by Zabbix server)

  • u: item units

  • i: item id (as defined by Zabbix server)

  • z: item icon (red letter “Z”)

You may also include arbitrary text in single or double quotes.

Item Value Format Modifiers

If you have a Zabbix item with value in bytes (such as memory storage size or network traffic) you may format it to GB, MB or KB using format modifiers as follows:

Available Memory, formatted

Value

v

25752940544

v{KB}

25,149,356.00

v{MB}

24,559.92

v{GB}

23.98