Solved

Wildcard in Service exclusion

  • 7 March 2024
  • 3 replies
  • 81 views

Userlevel 1
Badge +4

Hello,

I am monitoring a Windows server with NSClient++ RestAPI, and the "Services-Auto" service reports: GoogleUpdaterInternalService124.0.6337.0=stopped (auto), GoogleUpdaterService124.0.6337.0=stopped (auto)

I want to exclude them, but the issue is that each time they are updated, the version number increases, and the name changes.

I tried to make an exclusion with a wildcard based on what I found here and there, but it doesn't work.

Is it possible to make an exclusion with a wildcard? If so, what is the correct syntax?

Thanks in advance.

icon

Best answer by cb58 7 March 2024, 13:33

View original

3 replies

Userlevel 1
Badge +3

Hi,

At the end of the “FILTER” macro, you can add :

and name not like 'GoogleUpdater'

 

Regards

Userlevel 1
Badge +4

Hi,
I have same issue,I created this query.
At the end of the “FILTER” macro, you can add:-

start_type = 'auto' and is_trigger = 0 and name not like 'GoogleUpdaterInternalService' and name not like 'GoogleUpdaterService' and name not in ('xxxx','other service you want to exclude','xxxx','xxxx')​​​​
 

above syntax will exclude any service in front of not like wildcard no matter service version.
NOTE - Please replace or remove XXXX with actual services.
Regards,
CM

#excludeservice #service #serviceauto

Userlevel 1
Badge +4

It works, thank you very much to you two !

Reply