Ad Widget

Collapse

Ignore discovered file system by name?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rblumenthal
    Junior Member
    • May 2017
    • 11

    #1

    Ignore discovered file system by name?

    Hey folks,

    I am running the Zabbix agents on Windows Server. Is it possible to ignore specific drive during the file system discovery if the drive named 'Paging'? We have a D: drive on older machines that was dedicated for the paging file but do not use it anymore so we can't just ignore all D: drives. Any insight or tips would be great. Thanks
  • sca_ebe
    Junior Member
    • Jul 2017
    • 15

    #2
    Hello

    On the Template OS Windows, you have 3 Discovery rules.

    On the Mounted filesystem discovery, you have to add a filter to ignore the drive name.

    First, create a regex : Administration => General => Regular expressions (dropdown list on the top right)

    Give it a name like : Fsname to ignore for windows discovery
    Code:
    Expression : Result is false, ^(D:)$
    Then go to Configuration => Templates
    Click on Discovery on the Template OS Windows line (or whatever you named it)

    Click on Mounted filesystem discovery and go to the Filters tab

    By default, there is :

    Code:
    {#FSTYPE} matches @File systems for discovery
    Select "And" on Type of calculation

    Add :

    Code:
    {#FSNAME} matches @Fsname to ignore for windows discovery
    Click on add, update, and it should be ok

    Comment

    • rblumenthal
      Junior Member
      • May 2017
      • 11

      #3
      Ok thanks, I will give that a try. Would that ignore all D: drives? Does the discovery get the name of the drive instead of just the letter (ie. Local Disk, Paging, Data, etc)? Thanks

      Comment

      • sca_ebe
        Junior Member
        • Jul 2017
        • 15

        #4
        Yes it will ignore all D: drives.

        The discovery return something like this :

        Code:
        "data":[
                        {
                                "{#FSNAME}":"C:",
                                "{#FSTYPE}":"NTFS"},
                        {
                                "{#FSNAME}":"D:",
                                "{#FSTYPE}":"NTFS"},
                        {
                                "{#FSNAME}":"E:",
                                "{#FSTYPE}":"NTFS"}
        ]
        If you want to ignore D: drive on specific hosts, you need to apply the filter at the host level, not on the template

        Comment

        • rblumenthal
          Junior Member
          • May 2017
          • 11

          #5
          Ok thank you

          Comment

          Working...