Excluding Windows service alerts from Zabbix

By | December 19, 2024

Zabbix is a fantastic open-source application for monitoring your network attached devices. In regard to monitoring Windows endpoints, there are many Windows services that you will not want to see alerts for in your Zabbix dashboard. You can add exclusions to the template so that this excess clutter is not shown. This is a question that is asked a lot in the Zabbix forums, and the answers do not always seem to clearly give a beginner to Zabbix easy to follow steps for this. So, here it is.

From your main dashboard, go into, “Data collection“, then select, “Templates“. Almost to the end of the list of templates, you will see a template named, “Windows services by Zabbix agent“. Select that template.

Now select the MACROS tab within the template. Look for the section for, “{SERVICE.NAME.NOT_MATCHES}“. In the box, enter the service names you would like to exclude from detection. The list must begin with a ^ character and is separated by a | pipe character. The end of the list must be a $ dollar sign. An example would be:

^BITS|cplspcon|DolbyDAXAPI|edgeupdate|SysmonLogTrustedInstaller$

Click on UPDATE and your changes will be saved.

The exclusions will not be immediate. Normally the changes will only happen after the current lifecycle of the alerts history you have set. If you want the changes to be immediate and the services that you want to exclude removed from the dashboard immediately, then you will need to temporarily unlink and clear the windows services template from the, “Windows by Zabbix agent”, template, then add the template back in.

Using the same method to find the previous template, search for, “Windows by Zabbix agent” and open the template. Look for the, “Windows services by Zabbix agent“, and click on the link to the righ that says, “Unlink and clear“. Then click UPDATE. After several moments, the template will be removed. Now you can use the select function below to search and add the, “Windows services by Zabbix agent“, back into the template. Once you update the temaplate after adding the, “Windows services by Zabbix agent” back in, the alerts will be cleared out and now only be populated moving forward with the alerts you want.

All existing alerts are now cleared from dashboard and all future alerts will be shown except the ones you added to be excluded.