From 4f7eea1cd1c18a43c763d3ca50a911c0c5c3691b Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Fri, 20 Jan 2023 11:47:15 +0000 Subject: [PATCH] Adding d/p/30_check_disk_clarify_usage_possibilites from upstream --- .../30_check_disk_clarify_usage_possibilites | 20 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 21 insertions(+) create mode 100644 debian/patches/30_check_disk_clarify_usage_possibilites diff --git a/debian/patches/30_check_disk_clarify_usage_possibilites b/debian/patches/30_check_disk_clarify_usage_possibilites new file mode 100644 index 0000000..ad526d8 --- /dev/null +++ b/debian/patches/30_check_disk_clarify_usage_possibilites @@ -0,0 +1,20 @@ +From 4fa72f14e814ca94e8ee75b444011bd553870ebe Mon Sep 17 00:00:00 2001 +From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> +Date: Sat, 29 Jan 2022 15:50:03 +0100 +Subject: [PATCH 1/4] Clarify usage possibilites of check_disk + +--- + plugins/check_disk.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +--- a/plugins/check_disk.c ++++ b/plugins/check_disk.c +@@ -951,7 +951,7 @@ + print_usage (void) + { + printf ("%s\n", _("Usage:")); +- printf (" %s -w limit -c limit [-W limit] [-K limit] {-p path | -x device}\n", progname); ++ printf (" %s {-w absolute_limit |-w percentage_limit% | -W inode_percentage_limit } {-c absolute_limit|-c percentage_limit% | -K inode_percentage_limit } {-p path | -x device}\n", progname); + printf ("[-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]\n"); + printf ("[-t timeout] [-u unit] [-v] [-X type] [-N type]\n"); + } diff --git a/debian/patches/series b/debian/patches/series index 5ac4b5f..b18679c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -18,3 +18,4 @@ 27_check_snmp_add_multiplier 28_check_snmp_fix_regex_matches 29_check_log_polish +30_check_disk_clarify_usage_possibilites