Hi
first of all I googled a lot (literally hours) and found many descriptions which indicate that it should work. No matter what I try on our Zabbix Server I cannot achieve to filter out some FS based on mountpoint name.
In the template under discovery rules I chose the rule "mounted filesystem discovery" and under filter add my regex so that the result looks like
{#FSNAME} does not match ^(/usr|/usr/local/sepp)$
{#FSTYPE} matches @File systems for discovery
Type of calculation: A and B
But the filtered FS still show up in result. I ensured that the rule's key is vfs.fs.discovery (therefore the LLD macros ex {#FSNAME} should be available). But I also tried key vfs.fs.get and created the LLD macros manually like this "{#FSNAME} $.fsname" and "{#FSTYPE} $.fstype"
Makes no difference: the filtered FS still shows up in results. I also tried it with the global regex feature in zabbix but this as well does not work in my case
But from what I read here in forum and in other pages related to this it should be possible. Using "zabbix_server (Zabbix) 5.4.4" on a Debian 11 if that is important. The agent where I get the result from is running "zabbix_agentd (daemon) (Zabbix) 5.0.8" also on Debian 11
Any idea what I'm doing wrong? Or does it just not work?
Thank you && Cheers
tobi
first of all I googled a lot (literally hours) and found many descriptions which indicate that it should work. No matter what I try on our Zabbix Server I cannot achieve to filter out some FS based on mountpoint name.
In the template under discovery rules I chose the rule "mounted filesystem discovery" and under filter add my regex so that the result looks like
{#FSNAME} does not match ^(/usr|/usr/local/sepp)$
{#FSTYPE} matches @File systems for discovery
Type of calculation: A and B
But the filtered FS still show up in result. I ensured that the rule's key is vfs.fs.discovery (therefore the LLD macros ex {#FSNAME} should be available). But I also tried key vfs.fs.get and created the LLD macros manually like this "{#FSNAME} $.fsname" and "{#FSTYPE} $.fstype"
Makes no difference: the filtered FS still shows up in results. I also tried it with the global regex feature in zabbix but this as well does not work in my case
But from what I read here in forum and in other pages related to this it should be possible. Using "zabbix_server (Zabbix) 5.4.4" on a Debian 11 if that is important. The agent where I get the result from is running "zabbix_agentd (daemon) (Zabbix) 5.0.8" also on Debian 11
Any idea what I'm doing wrong? Or does it just not work?
Thank you && Cheers
tobi
Comment