Wanna filter some specific items to not discover anymore?
sometimes you may need a filtering for not discover at all, for example : /tmp directory in file systems discovery.
to make that happen you should navigate to your template and on discovery rules section click on your discovery rule item then go to Filters.
now create a new object and for Macro textbox use the macro that you are using in "item prototype" to discover file systems (usually it is {#FSNAME}) then you should determine whether you want to use "match" or "does not match" equation with second textbox which you should fill with Regular Expression (however if you don't know regex you can write the literal word you want to filter,e.g. /tmp)
Now some extra tips :
1. you can use both "match" and "does not match" in your filtering condition and determine the type of calculation witch could be and/or. also you could add another macros in here and expand your filtering using other used macros in your item prototype discovery such as FSTYPE for specify types of file system that you want to discover or not.
2. you can make a macro in your template or on your global macro and use that macro in filtering section.
3. if you made the macro on your template you can change it on host level and customize it however you like it. for seeing a global macro in your host you should click on inherited and template macros.
sometimes you may need a filtering for not discover at all, for example : /tmp directory in file systems discovery.
to make that happen you should navigate to your template and on discovery rules section click on your discovery rule item then go to Filters.
now create a new object and for Macro textbox use the macro that you are using in "item prototype" to discover file systems (usually it is {#FSNAME}) then you should determine whether you want to use "match" or "does not match" equation with second textbox which you should fill with Regular Expression (however if you don't know regex you can write the literal word you want to filter,e.g. /tmp)
Now some extra tips :
1. you can use both "match" and "does not match" in your filtering condition and determine the type of calculation witch could be and/or. also you could add another macros in here and expand your filtering using other used macros in your item prototype discovery such as FSTYPE for specify types of file system that you want to discover or not.
2. you can make a macro in your template or on your global macro and use that macro in filtering section.
3. if you made the macro on your template you can change it on host level and customize it however you like it. for seeing a global macro in your host you should click on inherited and template macros.