CentOS

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

JJ
Jobin Joseph · Founder and CEO
·Published 23 April 2018·1 min read

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
Expressions:
Result is FALSE
/virtfs/ 

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.

Jobin Joseph
Jobin Joseph, Founder and CEO
5x AWS Certified, ISO 27001:2022 Lead Implementer, 17+ years building cloud infrastructure for regulated industries.
About Jobin →

Reading this because your AWS bill or uptime is a problem?

30 minutes, direct with the founder, no sales pitch: one specific recommendation for your AWS workload.

Book a free 30-minute review
30 min Free Consultation →