Ad Widget

Collapse

PATCH: (Linux) Wildcard block device match

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rolf
    Junior Member
    • Feb 2013
    • 3

    #1

    PATCH: (Linux) Wildcard block device match

    Hi!

    Zabbix supports retrieving stats like vfs.dev.read[,sectors] or vfs.dev.read[sda,sectors] on Linux, the former returning the total of all block devices and the latter returning stats for a specific block device.

    In general I'd like to have totals of a specific class of devices, and not all devices. Having stats on all devices results in double counting when using e.g. RAID an LVM because both add additional devices each counting the (same) I/O as well.

    An alternative is a kind of wildcard construct like this: vfs.dev.read[sd?,sectors]. This should return totals for all vda, vdb, etc. block devices (so: not the partitions (vda1, vdb1 etc. nor the RAID and/or LVM devices on top).

    Attached a patch to achieve precisely this.

    Rolf
    Attached Files
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    Your idea is nice, it would worth to create a ZBXNEXT for this.

    Also, probably would be more correct to support there regexp but not just the "?" symbol.

    Comment

    • Rolf
      Junior Member
      • Feb 2013
      • 3

      #3
      Now with wildcards

      I followed your suggestion, zabbix-2.0.6-diskmatch.patch implements regexp matching.
      Attached Files

      Comment

      Working...