diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-02-22 22:39:10 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-07 23:38:50 +0100 |
commit | fb4f46f93da4ac50654fdcc2f26b2f37c73a9230 (patch) | |
tree | 2d09b35c6b033d85ff7117968ea6475ab8dec3dc /plugins/check_users.d/users.h | |
parent | 665e2f91306fa9b38044a382e4b7571a0c8c0c5f (diff) | |
download | monitoring-plugins-fb4f46f93da4ac50654fdcc2f26b2f37c73a9230.tar.gz |
Migrate check_users to new ouput infrastructure
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(); | ||