diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-01-09 14:57:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-09 14:57:57 +0100 |
| commit | da4fb28fca51b180d50608b0c847b1c0927cd8c5 (patch) | |
| tree | d20769e0a61ac2ba76920190050d3e0a3e7c85b7 /plugins/check_apt.d | |
| parent | b09a8b530df8a23610889d0b89b148f22db3568a (diff) | |
| parent | f694f4cd4dfead0da6feab04d92335d9bbe185b6 (diff) | |
| download | monitoring-plugins-da4fb28fca51b180d50608b0c847b1c0927cd8c5.tar.gz | |
Merge branch 'master' into refactor/check_ide_smart
Diffstat (limited to 'plugins/check_apt.d')
| -rw-r--r-- | plugins/check_apt.d/config.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/check_apt.d/config.h b/plugins/check_apt.d/config.h index 981f4f42..e4d622f1 100644 --- a/plugins/check_apt.d/config.h +++ b/plugins/check_apt.d/config.h | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | #include "../../config.h" | 3 | #include "../../config.h" |
| 4 | #include <stddef.h> | 4 | #include <stddef.h> |
| 5 | #include "../lib/output.h" | ||
| 5 | 6 | ||
| 6 | /* some constants */ | 7 | /* some constants */ |
| 7 | typedef enum { | 8 | typedef enum { |
| @@ -16,7 +17,7 @@ typedef struct { | |||
| 16 | bool only_critical; /* whether to warn about non-critical updates */ | 17 | bool only_critical; /* whether to warn about non-critical updates */ |
| 17 | bool list; /* list packages available for upgrade */ | 18 | bool list; /* list packages available for upgrade */ |
| 18 | /* number of packages available for upgrade to return WARNING status */ | 19 | /* number of packages available for upgrade to return WARNING status */ |
| 19 | int packages_warning; | 20 | size_t packages_warning; |
| 20 | 21 | ||
| 21 | char *upgrade_opts; /* options to override defaults for upgrade */ | 22 | char *upgrade_opts; /* options to override defaults for upgrade */ |
| 22 | char *update_opts; /* options to override defaults for update */ | 23 | char *update_opts; /* options to override defaults for update */ |
| @@ -24,6 +25,9 @@ typedef struct { | |||
| 24 | char *do_exclude; /* regexp to only exclude certain packages */ | 25 | char *do_exclude; /* regexp to only exclude certain packages */ |
| 25 | char *do_critical; /* regexp specifying critical packages */ | 26 | char *do_critical; /* regexp specifying critical packages */ |
| 26 | char *input_filename; /* input filename for testing */ | 27 | char *input_filename; /* input filename for testing */ |
| 28 | |||
| 29 | bool output_format_is_set; | ||
| 30 | mp_output_format output_format; | ||
| 27 | } check_apt_config; | 31 | } check_apt_config; |
| 28 | 32 | ||
| 29 | check_apt_config check_apt_config_init() { | 33 | check_apt_config check_apt_config_init() { |
| @@ -36,6 +40,7 @@ check_apt_config check_apt_config_init() { | |||
| 36 | .do_include = NULL, | 40 | .do_include = NULL, |
| 37 | .do_exclude = NULL, | 41 | .do_exclude = NULL, |
| 38 | .do_critical = NULL, | 42 | .do_critical = NULL, |
| 39 | .input_filename = NULL}; | 43 | .input_filename = NULL, |
| 44 | .output_format_is_set = false}; | ||
| 40 | return tmp; | 45 | return tmp; |
| 41 | } | 46 | } |
