Module: monitoring-plugins Branch: master Commit: 07873c765b73c85482436880f122882dfccd7e1b Author: Lorenz Kästle <12514511+rincewinds...@users.noreply.github.com> Date: Thu Feb 20 23:49:22 2025 +0100 URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=07873c76
Place output-format help string with the other common ones --- plugins/check_swap.c | 3 +-- plugins/utils.h | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 262d8d51..4d3b6099 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c @@ -381,8 +381,7 @@ void print_help(swap_config config) { _("Resulting state when there is no swap regardless of thresholds. " "Default:"), state_text(config.no_swap_state)); - printf(" %s\n", "--output-format"); - printf(" %s\n", _("Select output format. Valid values: \"icingaweb2\", \"mp-test-json\"")); + printf(UT_OUTPUT_FORMAT); printf(UT_VERBOSE); printf("\n"); diff --git a/plugins/utils.h b/plugins/utils.h index c7073990..bc26f704 100644 --- a/plugins/utils.h +++ b/plugins/utils.h @@ -195,4 +195,8 @@ The Monitoring Plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n\ copies of the plugins under the terms of the GNU General Public License.\n\ For more information about these matters, see the file named COPYING.\n") +#define UT_OUTPUT_FORMAT _("\ + --output-format=OUTPUT_FORMAT\n\ + Select output format. Valid values: \"icingaweb2\", \"mp-test-json\"\n") + #endif /* NP_UTILS_H */