There are some more tricks that can be used when creating items and we have already made use of them in the book. So, maybe you have noticed it already and found out how it works. If not, we will show you now and explain you how it works.
For this recipe, we just need our Zabbix server up and running and access rights as super administrator. We also need to have our agent installed on our Zabbix server and properly configured.
Mac Address on $1
.eth0
only system.hw.macaddr[eth0,]
.Mac Address on eth0
.When we make use of the $
symbol in our item name, $1
will be linked with the first value from our key. When our key has more than one value, let's say three values then we can make use of $1
, $2
, and $3
to read those values.
This makes life more easy when we work with templates. For more information about templates go to Chapter 6, Working with Templates in Zabbix.