Skip to content

Conversation

@RincewindsHat
Copy link
Member

No description provided.

@RincewindsHat
Copy link
Member Author

Needs a little testing on other OSes than linux

Previously check_users in combination with systemd used
sd_get_sessions (3) to aquire the number of users, probably
with the idea that every users opens a session.
Turns out, that a user can have multiple sessions and we only really
want to know how many users there are.

This commit changes to sd_get_uids (3) to achieve that target.
@RincewindsHat
Copy link
Member Author

works on freeBSD in one test :-)

@RincewindsHat RincewindsHat merged commit 723e0d3 into monitoring-plugins:master Aug 11, 2025
7 checks passed
@RincewindsHat RincewindsHat deleted the refactor/check_users branch August 11, 2025 21:22
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

Successfully merging this pull request may close these issues.

1 participant