Update: Found a solution, the name of the graph must include the macro, for example:
Drive discovery - Size of {#ITEM}
Hi,
I'm working on a template that uses discovery rules to get values from a file and create prototype items for each of the lines on the file. The item prototype key is this one:
which get values from a file like:
This part works great, after applying the template to a host the items are created according to the item prototype, I can see the values being read on zabbix on Monitoring->Latest Data.
I also created a graph prototype using the mentioned item prototype, but it doesn't appear on the host graphs. Any ideas ? there's not much to configure about the data selection on the graph creation screen.
Drive discovery - Size of {#ITEM}
Hi,
I'm working on a template that uses discovery rules to get values from a file and create prototype items for each of the lines on the file. The item prototype key is this one:
Code:
vfs.file.regexp["/data/logs/gdrive_size.log",^{#ITEM}(.*)$,,,,\1]
Code:
/dir1 1234454 /dir2 900343334 /dir3/a 6345385431
I also created a graph prototype using the mentioned item prototype, but it doesn't appear on the host graphs. Any ideas ? there's not much to configure about the data selection on the graph creation screen.