diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-05 13:15:55 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-05 13:15:55 +0100 |
| commit | 2f67402385fbe2550aed8313d57c40c45b512c44 (patch) | |
| tree | 979f0ecbb403d6eb6e6da5a876db1dff2d031e85 /plugins/check_radius.d/config.h | |
| parent | 3ae751ed67bb59c5073e0a160f4125ba2a5ff1e4 (diff) | |
| download | monitoring-plugins-2f67402385fbe2550aed8313d57c40c45b512c44.tar.gz | |
check_radius: Implement modern output
Diffstat (limited to 'plugins/check_radius.d/config.h')
| -rw-r--r-- | plugins/check_radius.d/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/check_radius.d/config.h b/plugins/check_radius.d/config.h index b27d31e7..656bf98e 100644 --- a/plugins/check_radius.d/config.h +++ b/plugins/check_radius.d/config.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | #include "../../config.h" | 3 | #include "../../config.h" |
| 4 | #include "output.h" | ||
| 4 | #include <stddef.h> | 5 | #include <stddef.h> |
| 5 | #if defined(HAVE_LIBRADCLI) | 6 | #if defined(HAVE_LIBRADCLI) |
| 6 | # include <radcli/radcli.h> | 7 | # include <radcli/radcli.h> |
| @@ -23,6 +24,9 @@ typedef struct { | |||
| 23 | unsigned short port; | 24 | unsigned short port; |
| 24 | 25 | ||
| 25 | char *expect; | 26 | char *expect; |
| 27 | |||
| 28 | bool output_format_is_set; | ||
| 29 | mp_output_format output_format; | ||
| 26 | } check_radius_config; | 30 | } check_radius_config; |
| 27 | 31 | ||
| 28 | check_radius_config check_radius_config_init() { | 32 | check_radius_config check_radius_config_init() { |
| @@ -37,6 +41,8 @@ check_radius_config check_radius_config_init() { | |||
| 37 | .port = PW_AUTH_UDP_PORT, | 41 | .port = PW_AUTH_UDP_PORT, |
| 38 | 42 | ||
| 39 | .expect = NULL, | 43 | .expect = NULL, |
| 44 | |||
| 45 | .output_format_is_set = false, | ||
| 40 | }; | 46 | }; |
| 41 | return tmp; | 47 | return tmp; |
| 42 | } | 48 | } |
