-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request - Support wildcards in exclude arguments #282
Comments
Can the number part of this service somehow be matched with regex? I can't figure it out. |
This does not work in Nagios but it does match in regex calculator tests so maybe NRPE doesn't allow this regex expression. |
Did you try to use the
|
Yes. It doesn’t work with *
Not really sure where I would put the filter part though.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Stefan Bungter ***@***.***>
Sent: Monday, February 26, 2024 2:54:44 AM
To: NagiosEnterprises/nrpe ***@***.***>
Cc: Smith, Michael ***@***.***>; Manual ***@***.***>
Subject: Re: [NagiosEnterprises/nrpe] Feature Request - Support wildcards in exclude arguments (Issue #282)
Did you try to use the filter argument?
filter=(name not regexp str(GoogleUpdater.*))
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/NagiosEnterprises/nrpe/issues/282*issuecomment-1963606577__;Iw!!BCR0FSePrR4x!DZAYt0qfCJn0Ie-hyN2ZuVE5OnVdwzIg7Y64HKhyYFULlrKdRwaq4GERDaajOxAH8SR4NjVdKsQgHFTw0pGCs2Aqbg$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AH5CQDG6SA7A2EJS6WFIHA3YVREVJAVCNFSM6AAAAABCXFHA62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRTGYYDMNJXG4__;!!BCR0FSePrR4x!DZAYt0qfCJn0Ie-hyN2ZuVE5OnVdwzIg7Y64HKhyYFULlrKdRwaq4GERDaajOxAH8SR4NjVdKsQgHFTw0pEOSD-I7Q$>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Here is what what works for me. To exclude a service by name:
Lets say the output (CRITICAL) lists both GoogleUpdaterInternalService124.0.6315.0 and GoogleUpdaterService124.0.6315.0 Then I can get rid off those two services with the following regex:
Using NRPE Plugin for Nagios version: 4.0.3 |
OK I'm getting this error now running Nagios core 4.5.0 |
Update working. I was using the legacy CheckServiceStatus. I switched to the Check_Service and was able to filter the Google services like this: Reference: https://nsclient.org/docs/reference/windows/CheckSystem/#check_service_filter |
Hello. Where should i put this filter? Can you provide short manual, please? |
This line is in the /usr/local/nagios/etc/objects/commands.cfg file. |
When services need to be excluded, and the service name includes things like version numbers, the exclude argument needs to be changed every time the version number is updated.
Add support for wild cards and/or head/tail type matching rules, so the exclude argument does not need to be changed.
The text was updated successfully, but these errors were encountered: