Windows service summary not matching service

CMK version: 2.1.0p6

In a rule of Windwos Service Summary I want to ignore the autostart service: Intel(R)_TPM_Provisioning_Service. I can ignore other services, but it seems like cmk is not matching the input with the service. It is still on CRIT. I also tried TPM_Provisioning_Service and *_TPM_Provisioning_Service but none of these work.


image

Best is you look in to the agent output what is teh name of the service:

<<<services>>>
ADWS running/auto Active Directory Web Services

In this case ist ADWS

BR

MF

1 Like

There it also says:

Intel(R)_TPM_Provisioning_Service stopped/auto Intel(R) TPM Provisioning Service

Maybe it’s because of the brackets and it tries to match it with regex?

1 Like

Yes, you have to escape special chr:

Intel\(R\)_TPM_Provisioning_Service stopped\/auto Intel\(R\) TPM Provisioning Service

Try with regex101

BR

MF

Hello,

I always use the following tool to test regex:

Try to paste the following into the service field, it should work:

Intel\(R\)_TPM_Provisioning_Service$

For example:

$ asserts position at the end of a line
\ escapes the following char. In your case ( and )

These characters must be escaped because otherwise they stand for another regex function. With () you can build regex groups. See Regex101

Greetings Felix

Yes, that worked. Thanks.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.