Ad Widget

Collapse

Sum Discovered FS that match RegEx

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aeassured
    Junior Member
    • Sep 2017
    • 8

    #1

    Sum Discovered FS that match RegEx

    All-
    I've got a discovery rule that finds VMs on deployed ESXi hosts, then discovers the file systems inside of those VMs.

    I want to add an item prototype to the discovery that takes volumes that match a pattern and sum them up.

    Here is the pattern:
    /mnt/wwn-0x5000c2936e124969

    I've tried cloning my FS Discovery rule and adding a regex filter on the {#FSNAME} for just a RegEx that matches:
    \/mnt\/wwn-([0-9]x[0-9]*.*)

    While this would give me items that are only matching this FS, it doesn't let me sum them up and return the value.

    I created a calculated prototype, but I don't know how to have them sum all the "used" space file systems that it discovers.

    Am I going about this the wrong way?

    I'd prefer to do this as part of a discovery rule so I don't have to make the item on every instance of this VM and new ones will automatically apply the sum.

    I need the aggregate because I want to watch space on the sum of all volumes that match the pattern as the data is striped across them.

    Thanks in advance for the help!

    EDIT:
    Classifying this as "Solved" because there is a feature request that resolves this, albeit unimplemented.
    Last edited by aeassured; 18-10-2017, 15:40.
  • kaspars.mednis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2017
    • 349

    #2
    Hello !

    it seems ZBXNEXT-1420 covers this topic....



    Regards,
    Kaspars

    Comment

    • aeassured
      Junior Member
      • Sep 2017
      • 8

      #3
      Thank you very much, that does seem to be exactly what I'm looking for. Shame it hasn't made it into the development cycle.

      Seems like I'm going to need to manually do this for each one then.

      Thank you very much for the quick feedback.

      Comment

      Working...