Value preprocessing and dependent items
A new powerful tool added in Zabbix is preprocessing items and dependent items. We touched briefly on preprocessing when we had to add a network card and calculate the Change per second. But there's much more that we can do now out of the box without the need for knowledge of scripting. As value mapping is something we have together in an item, we'll combine it with dependent items as it makes more sense here.
Let's start by creating a new item on our A test host
:
Name
:Zabbix master item
Type
:Zabbix agent(active)
Key
:mysql.dependent
Type of information
:Text
New applications
:MySQL-Master
If all goes well, when we look at the latest data, we now see text value in our history as shown in the following screenshot:

When we click on History
,
it should show us all of the values from our MySQL:

Now, this looks nice but let's say we're only interested in two lines, Innodb_deadlocks
and Aborted_clients
, and we want to see the values from those two lines also....