Ad Widget

Collapse

Parameter based graphs and/or graph re-use

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dennisj
    Junior Member
    • Apr 2010
    • 24

    #1

    Parameter based graphs and/or graph re-use

    I'm looking for a way to add multiple copies of the same graphs that only differ by the first parameter for an item.
    What I specifically want to do is that I have written a script that parses /proc/diskstat and delivers the data to zabbix in the form:

    ...
    custom.vfs.dev.read.ops[sda]
    custom.vfs.dev.read.merged[sda]
    custom.vfs.dev.read.sectors[sda]
    custom.vfs.dev.read.ms[sda]
    ...
    custom.vfs.dev.read.ops[sdb]
    custom.vfs.dev.read.merged[sdb]
    custom.vfs.dev.read.sectors[sdb]
    custom.vfs.dev.read.ms[sdb]
    ...

    so the same data gets pushed for each block device.
    What I'd like to do now is to create a graph for this data and then find a way to easily duplicate that graph so that it displays the same data only for a different block device e.g. when the first graph displays the item read.ops for "sda" then I want the duplicated graph to display read.ops for "sdb".
    Is this possible? If not what would be the best approach to do something like this that doesn't require building each graph almost from scratch?
Working...