Ad Widget

Collapse

Prevent or filter discovered items

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • etfz
    Junior Member
    • Apr 2024
    • 19

    #1

    Prevent or filter discovered items

    Hi,

    I have some VMware virtual machines with filesystem discovery, and I've just noticed that each ZFS snapshot is discovered as a filesystem. This clutters the data, and I would to eliminate these. Besides disabling filesystem discovery altogether - which I'm not ruling out, as I intend to use agent based file system monitoring - I have a few ideas, none of which I know how to do.

    - Disable if a certain template is applied to the host
    - Disable if a certain tag is present on the host
    - Omit file systems whose name contain a certain string (undesirable)
  • Answer selected by etfz at 25-11-2024, 16:49.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    vmware guest "mounted fielsystems" discovery has no filters set..Only LLD macro there is {#FSNAME}.. so you can only add a filter based on that... either does not match regex or matches regex...

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #2
      vmware guest "mounted fielsystems" discovery has no filters set..Only LLD macro there is {#FSNAME}.. so you can only add a filter based on that... either does not match regex or matches regex...

      Comment

      • etfz
        Junior Member
        • Apr 2024
        • 19

        #3
        That works, but I don't really like it. No way for the other methods? (disabling all file system discovery based on host template or tag?

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #4
          nope.. there is nothing like "if this tag exists on a host, don't run template X"...

          Comment

          • etfz
            Junior Member
            • Apr 2024
            • 19

            #5
            I understand. Thanks. In the end, I've opted to disable filesystem discovery across the board.

            Comment

            Working...