Ad Widget

Collapse

Adding a graph prototype to a template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jbaptiste
    Junior Member
    • Sep 2016
    • 5

    #1

    Adding a graph prototype to a template

    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:

    Code:
    vfs.file.regexp["/data/logs/gdrive_size.log",^{#ITEM}(.*)$,,,,\1]
    which get values from a file like:

    Code:
    /dir1 1234454
    /dir2 900343334
    /dir3/a 6345385431
    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.
    Last edited by jbaptiste; 03-10-2017, 09:54. Reason: Found solution
Working...