Ad Widget

Collapse

Exclude x and z volumes from discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eswanson
    Junior Member
    • Apr 2016
    • 2

    #1

    Exclude x and z volumes from discovery

    Hello, I'm new to Zabbix and trying to figure out how to exclude 2 Windows volumes from being discovered or monitored by Zabbix. We have some servers in the cloud and our DR partner temporarily maps the y or z drive to copy data over to the DR servers in another cloud datacenter. These mappings get picked up by zabbix discovery and send false alerts:

    Trigger status: OK
    Trigger: Free disk space is less than 5% on volume Y:


    I've tried changing the Mounted Filesystem Discovery rule for a template to the following to exclude the y and z volume:
    Filter Macro: {#FSNAME}
    Regexp: ^C-X

    I've also tried creating item prototype and trigger prototypes and disabled the trigger prototype in hopes that it would prevent the trigger:
    Item Prototype:
    Name: Free disk space on Y: (percentage)
    Type: Zabix Agent
    Key: vfs.fs.size[{Y:},pfree]

    Trigger prototype:
    Name: Free disk space is less than 5% on volume {Y:}
    Expression: {Template OS Windows - No Z Y drives:vfs.fs.size[{Y:},pfree].max(5)}<5
    Enabled: unckecked.

    We've stopped getting alerts for the DR volume mappings, but we've also stopped getting alerts for all volumes that we want to get alerts for.

    What is the best way to prevent the y and z volumes from getting monitored by zabbix? Unfortunately are running 2.2.1 otherwise I could add multiple filters.
  • cvee.it
    Member
    • Nov 2010
    • 45

    #2
    Have you already tried going into the regular expressions section under General ? and modifying the existing filter associated with the discovery item ?

    By default there should be a pre-existing :

    Result is TRUE: ^(btrfs|ext2|ext3|ext4|jfs|reiser|xfs|ffs|ufs|jfs| jfs2|vxfs|hfs|ntfs|fat32|zfs)$

    Then I'd add y our own "Result is False" and regex your own what you want to be excluded.... ie y/x drive.

    Comment

    • eswanson
      Junior Member
      • Apr 2016
      • 2

      #3
      Thanks for the reply. So would the expression be:

      1 ^(btrfs|ext2|ext3|ext4|jfs|reiser|xfs|ffs|ufs|jfs| jfs2|vxfs|hfs|ntfs|fat32)$ [Result is TRUE]
      2 [^yz] [Result is FALSE]

      Comment

      Working...