diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-16 14:11:29 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-16 14:11:29 +0200 |
commit | dab009654cfb76d690d7fb64ca9a190d855a308f (patch) | |
tree | d06b546e9c2c9660a897bdd800db4935aa9e1fe6 | |
parent | c4716ad8d8dfdcc0b1ab4b1614b626360b7cca07 (diff) | |
download | monitoring-plugins-dab00965.tar.gz |
fix default check state
-rw-r--r-- | plugins/check_apt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_apt.c b/plugins/check_apt.c index 80ce6060..9ed5b6cf 100644 --- a/plugins/check_apt.c +++ b/plugins/check_apt.c | |||
@@ -177,7 +177,7 @@ int main(int argc, char **argv) { | |||
177 | mp_subcheck sc_other_updates = mp_subcheck_init(); | 177 | mp_subcheck sc_other_updates = mp_subcheck_init(); |
178 | 178 | ||
179 | xasprintf(&sc_other_updates.output, "Updates available: %zu", packages_available); | 179 | xasprintf(&sc_other_updates.output, "Updates available: %zu", packages_available); |
180 | mp_set_subcheck_default_state(sc_other_updates, STATE_OK); | 180 | sc_other_updates = mp_set_subcheck_default_state(sc_other_updates, STATE_OK); |
181 | mp_add_perfdata_to_subcheck(&sc_other_updates, pd_other_updates); | 181 | mp_add_perfdata_to_subcheck(&sc_other_updates, pd_other_updates); |
182 | 182 | ||
183 | if (packages_available >= config.packages_warning && !config.only_critical) { | 183 | if (packages_available >= config.packages_warning && !config.only_critical) { |