How to exclude virtfs or any Mount Point from Zabbix Filesystem Discovery

How to exclude virtfs or any Mount Point from Zabbix Filesystem Discovery

I was configuring Zabbix for our cPanel servers. A few years back I had configured Zabbix with Manual mount points. But this time, I want to use the File System Discovery to make the setup easier for the team.

The default configuration of Zabbix will detect all the virtfs mount point from the cPanel servers but this is not needed for us since virtfs mount points are just hardlinks in cPanel.


Below is the configuration  I have done on my Zabbix, Please feel free to comment if you need any help on the configuration.

Define the  Regular Expressions

Administration >> General >> Regular Expressions (Right hand side DropDown)

New Regular Expression
Name : File systems for discovery exclude
Result is FALSE

2. Modify the Filesystem Discovery In template.

Switch to the Template you are using. In mycase Template OS Linux

Configuration >> Templates >> Click on the template you are using of you are not using any custom one, it should be Template OS Linux

Click on Discovery Rules >> Mounted filesystem discovery

On the window, Click on FIlters

Modify the below settings

Type of calculation: AND

Filters: Add a new one

Label Macro {#FSNAME}

Regular expression: @File systems for discovery exclude  

Click on Add and the Update. Now it should look like the below.

If you dont want to wait for another 1hour to reflect the same.

Modify the Update interval in Discovery Rules to be 2m or 5m to see the changes fast. Revert it back once the rule is tested and verified.



Leave a Reply

Your email address will not be published. Required fields are marked *