Skip to main content
Solved

Wildcard in Service exclusion

  • March 7, 2024
  • 3 replies
  • 553 views

Forum|alt.badge.img+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.

Best answer by cb58

Hi,

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

and name not like 'GoogleUpdater'

 

Regards

3 replies

Forum|alt.badge.img+7
  • Steward *
  • Answer
  • March 7, 2024

Hi,

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

and name not like 'GoogleUpdater'

 

Regards


Forum|alt.badge.img+7
  • Builder *
  • March 11, 2024

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


Forum|alt.badge.img+4
  • Author
  • Steward **
  • March 11, 2024

It works, thank you very much to you two !