summaryrefslogtreecommitdiffstats
path: root/plugins/check_users.d/users.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-02-22 22:39:10 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-07 23:38:50 +0100
commitfb4f46f93da4ac50654fdcc2f26b2f37c73a9230 (patch)
tree2d09b35c6b033d85ff7117968ea6475ab8dec3dc /plugins/check_users.d/users.h
parent665e2f91306fa9b38044a382e4b7571a0c8c0c5f (diff)
downloadmonitoring-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.h18
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
3typedef struct get_num_of_users_wrapper {
4 int errorcode;
5 int users;
6} get_num_of_users_wrapper;
7
8enum {
9 NO_SYSTEMD_ERROR = 64,
10 WINDOWS_COULD_NOT_ENUMERATE_SESSIONS,
11 COULD_NOT_OPEN_PIPE,
12 STDERR_COULD_NOT_BE_READ,
13};
14
15get_num_of_users_wrapper get_num_of_users_systemd();
16get_num_of_users_wrapper get_num_of_users_utmp();
17get_num_of_users_wrapper get_num_of_users_windows();
18get_num_of_users_wrapper get_num_of_users_who_command();