With Zabbix 5.x, 6.x and 7.x Zabbix has the option to use User Macros in LLD (Low-Level Discovery) rather than to use Global Regular Expressions. To exclude Windows Services from Windows Discovery, you should either edit the Template that will take effect for all hosts with the template or override template settings on a host level. It’s recommended to make changes on the template level and disable items on a host level because if you override a user macro on the host, any subsequent updates to the template macro will not propagate to the hosts that have changed the template macro.
Data Collection –> Templates –> Your Windows template
Go to your Windows Template and select the macros tab from the template. Locate the following user macros:
Macro
Description
Regular Expression
{$SERVICE.NAME.MATCHES}
Regular Expression to only get selected services as new items. By default it won’t filter any services.
^.*$
{$SERVICE.NAME.NOT_MATCHES}
Services you don’t want to monitor in regex format. Example on the right.
Only get items for services that start automatically
^(?:automatic|automatic delayed)$
{$SERVICE.STARTUPNAME.NOT_MATCHES}
Exclude services that are started as manual or disabled
^(?:manual|disabled)$
Change the regex values as needed to exclude services from the discovery.
The Discovery rule itself can be found at the LLD tab of the template in question. Go to “Windows Service Discovery” and select “Filters”. You can add additional Macros to the rule, or optionally change the logic of the filter from the default AND to AND/OR or even a custom expression.
[ORIGINAL POST For Zabbix 4.x and older]
The new Zabbix Windows templates include a Low-Level Discovery for Windows Services. The service.discovery LLD creates items based on discovered Windows Services and accompanies triggers to services with Automatic startup.
To ignore a set of services, from all Windows clients, you need to modify the discovery regex. To modify the default regex, open Administration > General > Regular Expressions. Modify the Windows Service names for discovery regex that has a return value of false. Add any services to this in valid regex format to exclude them for the LLD discovery.
No need to rediscover hosts or anything. The services will be filtered according to regex next discovery run. Keep in mind discovered items have a lifetime after they are lost, if you want to loose them right away, just set this temporarily to 0d.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Hi,
Does it apply by itself ? or do I need to rediscover all windows machines ?
Regards
No need to rediscover hosts or anything. The services will be filtered according to regex next discovery run. Keep in mind discovered items have a lifetime after they are lost, if you want to loose them right away, just set this temporarily to 0d.