Some advanced monitoring tricks
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.
Getting ready
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.
How to do it …
Let's take next recipe as example and change the Name in
Mac Address on $1
.Now let's modify the Key and specify that we want the MAC address from
eth0
onlysystem.hw.macaddr[eth0,]
.Now click the Update button.
Now go to the list with all items and take a look at your item. You will see that the name now is
Mac Address on eth0
.
How it works...
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...