diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-09 02:07:32 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-09 02:07:32 +0200 |
commit | fbd60d6a9d9ba5b45879280dcfda92379dec65da (patch) | |
tree | a7c0e428be10bb27b6344c6531b804451c4d40cc /plugins/check_users.d/users.h | |
parent | b54869391faab7ef91586c81de21f18a61bac5aa (diff) | |
parent | 615fec347cd575c0ee4343aa17ee99962f375f64 (diff) | |
download | monitoring-plugins-fbd60d6a9d9ba5b45879280dcfda92379dec65da.tar.gz |
Merge branch 'master' into refactor/check_curl
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(); | ||