diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-08-11 23:22:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-11 23:22:54 +0200 |
commit | 723e0d3466d85a6ed9811d0661db289e7d9406d9 (patch) | |
tree | 4b26f57d9f62c3cb084e063011910efa42fea0f4 /plugins/check_users.d/users.h | |
parent | 2046ae85574c32370facab3c01f2152e56e1e981 (diff) | |
parent | 7382fa90f84d38cd2ae08c880e9ed6a4ad644d35 (diff) | |
download | monitoring-plugins-723e0d3466d85a6ed9811d0661db289e7d9406d9.tar.gz |
Merge pull request #2107 from RincewindsHat/refactor/check_users
Refactor/check users
Diffstat (limited to 'plugins/check_users.d/users.h')
-rw-r--r-- | plugins/check_users.d/users.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/check_users.d/users.h b/plugins/check_users.d/users.h new file mode 100644 index 00000000..aacba775 --- /dev/null +++ b/plugins/check_users.d/users.h | |||
@@ -0,0 +1,18 @@ | |||
1 | #pragma once | ||
2 | |||
3 | typedef struct get_num_of_users_wrapper { | ||
4 | int errorcode; | ||
5 | int users; | ||
6 | } get_num_of_users_wrapper; | ||
7 | |||
8 | enum { | ||
9 | NO_SYSTEMD_ERROR = 64, | ||
10 | WINDOWS_COULD_NOT_ENUMERATE_SESSIONS, | ||
11 | COULD_NOT_OPEN_PIPE, | ||
12 | STDERR_COULD_NOT_BE_READ, | ||
13 | }; | ||
14 | |||
15 | get_num_of_users_wrapper get_num_of_users_systemd(); | ||
16 | get_num_of_users_wrapper get_num_of_users_utmp(); | ||
17 | get_num_of_users_wrapper get_num_of_users_windows(); | ||
18 | get_num_of_users_wrapper get_num_of_users_who_command(); | ||