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 …

  1. Let's take next recipe as example and change the Name in Mac Address on $1.
  2. Now let's modify the Key and specify that we want the MAC address from eth0 only system.hw.macaddr[eth0,].
    How to do it …
  3. Now click the Update button.
  4. 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 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.225.11.98