From e817fecb7d4368e636fae8ef039ed1d53f8a9590 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sat, 19 Apr 2025 10:27:49 +0200 Subject: [PATCH] Adding d/p/21_check_http_state_regex from upstream https://patch-diff.githubusercontent.com/raw/monitoring-plugins/monitoring-plugins/pull/2056.patch --- debian/patches/21_check_http_state_regex | 22 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 23 insertions(+) create mode 100644 debian/patches/21_check_http_state_regex diff --git a/debian/patches/21_check_http_state_regex b/debian/patches/21_check_http_state_regex new file mode 100644 index 0000000..993791e --- /dev/null +++ b/debian/patches/21_check_http_state_regex @@ -0,0 +1,22 @@ +From e445a386f8ad1166b05fcdfdb5b9cde4622a8632 Mon Sep 17 00:00:00 2001 +From: Andreas Baumann +Date: Fri, 27 Dec 2024 15:32:24 +0100 +Subject: [PATCH] check_http: fix documentation for --state-regex + +--- + plugins/check_http.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plugins/check_http.c b/plugins/check_http.c +index 97c0e39ad..baff682a7 100644 +--- a/plugins/check_http.c ++++ b/plugins/check_http.c +@@ -1805,7 +1805,7 @@ print_help (void) + printf (" %s\n", "--invert-regex"); + printf (" %s\n", _("Return STATE if found, OK if not (STATE is CRITICAL, per default)")); + printf (" %s\n", _("can be changed with --state--regex)")); +- printf (" %s\n", "--regex-state=STATE"); ++ printf (" %s\n", "--state-regex=STATE"); + printf (" %s\n", _("Return STATE if regex is found, OK if not\n")); + + printf (" %s\n", "-a, --authorization=AUTH_PAIR"); diff --git a/debian/patches/series b/debian/patches/series index 7dad337..a29ac6e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -12,4 +12,5 @@ 18_check_curl_fix_TLS_notes 19_check_curl_cookie_handling 20_check_icmp_fix_rtmin +21_check_http_state_regex # feature patches