Skip to content
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

Invalid return code, when sssd service is down #1

Open
folax opened this issue Jun 24, 2021 · 1 comment
Open

Invalid return code, when sssd service is down #1

folax opened this issue Jun 24, 2021 · 1 comment

Comments

@folax
Copy link

folax commented Jun 24, 2021

When we stop sssd service:
systemctl stop sssd
and then run command, we get result:
root@host1:/etc/sudoers.d# /usr/lib/nagios/plugins/check_sssd_backend_status --debug; echo $?
DEBU[0000] executing command [sssctl domain-list]
fetching all domains: listing domains: exit status 1
3

We got return code 3(UNKNOWN), it should be 2(CRITICAL), because service sssd is not running.
How I can fix this?

@riton
Copy link
Member

riton commented Aug 28, 2023

Hi @folax . Damn sorry, your issue has gone under our radar 🤦

We got return code 3(UNKNOWN), it should be 2(CRITICAL), because service sssd is not running.

I agree that this should be changed to return a CRITICAL status ✔️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants