Page 1 of 1
Exclude GoogleUpdaterInternalService
Posted: Wed Jan 31, 2024 12:09 pm
by smithmich@uhcl.edu
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.
Re: Exclude GoogleUpdaterInternalService
Posted: Fri Feb 02, 2024 2:17 pm
by lgute
Hi
smithmich@uhcl.edu, 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.
Re: Exclude GoogleUpdaterInternalService
Posted: Fri Mar 01, 2024 12:14 pm
by smithmich@uhcl.edu
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
Re: Exclude GoogleUpdaterInternalService
Posted: Tue Mar 05, 2024 9:30 am
by lgute
Hi
smithmich@uhcl.edu,
I am glad you found a workable solution and thank you for posting your solution.
Re: Exclude GoogleUpdaterInternalService
Posted: Tue Mar 19, 2024 3:28 am
by talkexisting
smithmich@uhcl.edu 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
smithmich@uhcl.edu
Many thanks for that solution. I'm also experiencing the same situation.
Re: Exclude GoogleUpdaterInternalService
Posted: Sat Mar 30, 2024 4:14 pm
by sralinko
talkexisting wrote: ↑Tue Mar 19, 2024 3:28 am
smithmich@uhcl.edu 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
smithmich@uhcl.edu
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
Re: Exclude GoogleUpdaterInternalService
Posted: Mon Apr 01, 2024 3:38 pm
by lgute
Hi
@sralinko,
I was able to get to the nsclient.org site today. It may have been down for maintenance.
Re: Exclude GoogleUpdaterInternalService
Posted: Wed Apr 24, 2024 3:32 am
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.