-
Notifications
You must be signed in to change notification settings - Fork 79
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
sshd check in redhat 9.X fails even though sshd is running #151
Comments
The You might try |
I've started doing all my service checks via systemctl, e.g.
* || check_cmd_output -t 2 -r 0 /usr/bin/systemctl is-active sssd
Having a dozen of these doesn't seem to make a meaningful difference to how
long my check runs. I've also been thinking about writing a custom health
check function that takes a list of services and checks them all with one
call to systemctl if/when it does become an issue to call systemctl many
times.
griznog
…On Tue, Aug 27, 2024 at 3:06 PM Ken Dalenberg ***@***.***> wrote:
The standard check: * || check_ps_service -u root -S sshd
Fails in redhat 9 when sshd service is enabled and running. Debug shows:
[1724788959] - DEBUG: Checking 67117: "*sshd" vs. "sshd:"
[1724788959] - DEBUG: Glob match check: sshd: does not match *sshd
—
Reply to this email directly, view it on GitHub
<#151>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB4PKT7CWAQAKHCFYOJOQ3ZTTL4HAVCNFSM6AAAAABNG27VUCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4TAMRSHAYTCMI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This is the string that got things working ok in redhat 9:
check_ps_service -u root -d sshd: -S sshd
KEN DALENBERG
Linux System Administrator
Office of Advanced Research Computing
Rutgers, The State University of New Jersey
Busch Campus, CoRE Building, 96 Frelinghuysen Road, Piscataway, NJ 08854
***@***.***
848-445-5248
________________________________
From: griznog ***@***.***>
Sent: Sunday, September 8, 2024 10:55 AM
To: mej/nhc ***@***.***>
Cc: Kenneth Dalenberg ***@***.***>; Author ***@***.***>
Subject: Re: [mej/nhc] sshd check in redhat 9.X fails even though sshd is running (Issue #151)
I've started doing all my service checks via systemctl, e.g.
* || check_cmd_output -t 2 -r 0 /usr/bin/systemctl is-active sssd
Having a dozen of these doesn't seem to make a meaningful difference to how
long my check runs. I've also been thinking about writing a custom health
check function that takes a list of services and checks them all with one
call to systemctl if/when it does become an issue to call systemctl many
times.
griznog
On Tue, Aug 27, 2024 at 3:06 PM Ken Dalenberg ***@***.***> wrote:
The standard check: * || check_ps_service -u root -S sshd
Fails in redhat 9 when sshd service is enabled and running. Debug shows:
[1724788959] - DEBUG: Checking 67117: "*sshd" vs. "sshd:"
[1724788959] - DEBUG: Glob match check: sshd: does not match *sshd
—
Reply to this email directly, view it on GitHub
<#151>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB4PKT7CWAQAKHCFYOJOQ3ZTTL4HAVCNFSM6AAAAABNG27VUCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4TAMRSHAYTCMI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
—
Reply to this email directly, view it on GitHub<#151 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZOSS7XYWASVEK4VD6OTRXDZVRQOLAVCNFSM6AAAAABNG27VUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWG4YTMNBSHE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
As I'm sure you remember, when There's a lot I really love about SystemD, and there's a lot about it that drives me bonkers. But the quantity and usefulness of the verbs supported by Regardless, if you do happen to put together a custom check for
Great! Glad you got it working. Just something to keep in mind: |
(Same issue as in #99) |
The standard check: * || check_ps_service -u root -S sshd
Fails in redhat 9 when sshd service is enabled and running. Debug shows:
[1724788959] - DEBUG: Checking 67117: "*sshd" vs. "sshd:"
[1724788959] - DEBUG: Glob match check: sshd: does not match *sshd
The text was updated successfully, but these errors were encountered: