Exclude GoogleUpdaterInternalService

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
[email protected]
Posts: 2
Joined: Mon Nov 06, 2017 11:57 am

Exclude GoogleUpdaterInternalService

Post by [email protected] »

How do I exclude the GoogleUpdaterInternalService123.43 from service checks with a wildcard representing the numbers.
I can exclude the full service name like GoogleUpdaterInternalService123.45.67 but whenever someone updated it the service name changes to something like GoogleUpdaterInternalService123.56.789.
I tried excluding GoogleUpdaterInternalService^ but that does not seem to work.
This is what I have now but have to change the value often.
define command{
command_name check_some_services
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c CheckServiceState -a CheckAlc exclude=GoogleUpdaterInternalService122.0.6253.9 exclude=GoogleUpdaterService122.0.6253.9 exclude=$ARG1$ exclude=$ARG2$ exclude=$ARG3$ exclude=$ARG4$ exclude=$ARG5$
}

Any suggestions are appreciated.
User avatar
lgute
Posts: 411
Joined: Mon Apr 06, 2020 2:49 pm

Re: Exclude GoogleUpdaterInternalService

Post by lgute »

Hi [email protected], thanks for reaching out.

Unfortunately NRPE does not currently support wildcards, in the exclude options.

I opened a feature request for NRPE. This is an open source project, so anyone can work on implementing this feature, not just our maintainer. If a programming resource is available to you, that would be the quickest way to get this ability. I did talk to the current maintainer and he said he would accept a patch that implements this feature.
Please let us know if you have any other questions or concerns.

-Laura
[email protected]
Posts: 2
Joined: Mon Nov 06, 2017 11:57 am

Re: Exclude GoogleUpdaterInternalService

Post by [email protected] »

In case anyone searches for this topic:
Now working.
I was using the legacy CheckServiceStatus. I switched to the Check_Service and was able to filter the Google services like this:
command_line /check_nrpe -H -t 60 -c Check_Service -a "filter=name not like 'Google'" exclude=RemoteRegistry exclude=wuauserv exclude=$ARG1$ exclude=$ARG2$ exclude=$ARG3$ exclude=$ARG4$ exclude=$ARG5$ #

Reference: https://nsclient.org/docs/reference/win ... ice_filter
User avatar
lgute
Posts: 411
Joined: Mon Apr 06, 2020 2:49 pm

Re: Exclude GoogleUpdaterInternalService

Post by lgute »

Hi [email protected],

I am glad you found a workable solution and thank you for posting your solution.
Please let us know if you have any other questions or concerns.

-Laura
talkexisting
Posts: 2
Joined: Tue Mar 19, 2024 3:23 am

Re: Exclude GoogleUpdaterInternalService

Post by talkexisting »

[email protected] wrote: Fri Mar 01, 2024 12:14 pm In case anyone searches for this topic:
Now working.
I was using the legacy CheckServiceStatus. I switched to the Check_Service and was able to filter the Google services like this:
command_line /check_nrpe -H -t 60 -c Check_Service -a "filter=name not like 'Google'" exclude=RemoteRegistry exclude=wuauserv exclude=$ARG1$ exclude=$ARG2$ exclude=$ARG3$ exclude=$ARG4$ exclude=$ARG5$ # geometry dash world

Reference: https://nsclient.org/docs/reference/win ... ice_filter
Hi [email protected]
Many thanks for that solution. I'm also experiencing the same situation.
sralinko
Posts: 1
Joined: Sat Mar 30, 2024 4:04 pm

Re: Exclude GoogleUpdaterInternalService

Post by sralinko »

talkexisting wrote: Tue Mar 19, 2024 3:28 am
[email protected] wrote: Fri Mar 01, 2024 12:14 pm In case anyone searches for this topic:
Now working.
I was using the legacy CheckServiceStatus. I switched to the Check_Service and was able to filter the Google services like this:
command_line /check_nrpe -H -t 60 -c Check_Service -a "filter=name not like 'Google'" exclude=RemoteRegistry exclude=wuauserv exclude=$ARG1$ exclude=$ARG2$ exclude=$ARG3$ exclude=$ARG4$ exclude=$ARG5$ # twin flame astrology

Reference: https://nsclient.org/docs/reference/win ... ice_filter
Hi [email protected]
Many thanks for that solution. I'm also experiencing the same situation.
Were you able to open the nsclient.org link? I am seeing 503 error :(
User avatar
lgute
Posts: 411
Joined: Mon Apr 06, 2020 2:49 pm

Re: Exclude GoogleUpdaterInternalService

Post by lgute »

Hi @sralinko,

I was able to get to the nsclient.org site today. It may have been down for maintenance.
Please let us know if you have any other questions or concerns.

-Laura
Lebenshilfe
Posts: 3
Joined: Tue Apr 23, 2024 7:56 am

Re: Exclude GoogleUpdaterInternalService

Post by Lebenshilfe »

Hello,

I have the same problem, but I get a wrong result:

root@nagios2:/etc/nagios-plugins/config# ./check_nrpe -H X.X.X.X -c Check_Service -a "filter=name not like 'Google'"
UNKNOWN: No handler for that command

I don`t understand my problem.

I hope someone can help me.

Thank you.
Post Reply