summaryrefslogtreecommitdiffstats
path: root/plugins/common.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-11 21:49:20 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-11 21:49:20 +0200
commitfb39f96ac6f72bb56d17f3e8694134dfea9186e9 (patch)
treeaf008b4d92b42404d16b8fb687530ab73b969eb9 /plugins/common.h
parent4a0e309f9f5a85af6087e3eb7034a98dd410c6f7 (diff)
downloadmonitoring-plugins-fb39f96ac6f72bb56d17f3e8694134dfea9186e9.tar.gz
check_users: Use sd_get_uids instead of sd_get_session
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.
Diffstat (limited to 'plugins/common.h')
0 files changed, 0 insertions, 0 deletions