[pkg-nagios-changes] [Git][nagios-team/monitoring-plugins][master] Adding d/p/12_check_curl_add_docu from upstream
Jan Wagner (@waja)
gitlab at salsa.debian.org
Mon Aug 19 23:00:59 BST 2024
Jan Wagner pushed to branch master at Debian Nagios Maintainer Group / monitoring-plugins
Commits:
a6b1db0c by Jan Wagner at 2024-08-19T23:53:46+02:00
Adding d/p/12_check_curl_add_docu from upstream
https://patch-diff.githubusercontent.com/raw/monitoring-plugins/monitoring-plugins/pull/2012.patch
- - - - -
2 changed files:
- + debian/patches/12_check_curl_add_docu
- debian/patches/series
Changes:
=====================================
debian/patches/12_check_curl_add_docu
=====================================
@@ -0,0 +1,42 @@
+From 9cdf2aec7fa3277237c078fc9da32f40d0292299 Mon Sep 17 00:00:00 2001
+From: Alvar Penning <alvar.penning at icinga.com>
+Date: Fri, 16 Aug 2024 10:38:02 +0200
+Subject: [PATCH] check_curl: Documentation for --certificate, --cookie-jar
+
+From the mere help output for -C / --certificate, I was confused about
+what its two integer parameters do. Unfortunately, I also missed out on
+the explaining examples later. Since I like to have basic documentation
+for each flag, I tried to make the arguments as short as possible.
+
+The other fix was one hyphen too many for the --cookie-jar option.
+---
+ plugins/check_curl.c | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/plugins/check_curl.c b/plugins/check_curl.c
+index 4522e6c9f..e9c15e648 100644
+--- a/plugins/check_curl.c
++++ b/plugins/check_curl.c
+@@ -2008,8 +2008,11 @@ print_help (void)
+ printf (" %s\n", _("Note: SNI is not supported in libcurl before 7.18.1"));
+ #endif
+ printf (" %s\n", "-C, --certificate=INTEGER[,INTEGER]");
+- printf (" %s\n", _("Minimum number of days a certificate has to be valid. Port defaults to 443"));
+- printf (" %s\n", _("(when this option is used the URL is not checked by default. You can use"));
++ printf (" %s\n", _("Minimum number of days a certificate has to be valid. Port defaults to 443."));
++ printf (" %s\n", _("A STATE_WARNING is returned if the certificate has a validity less than the"));
++ printf (" %s\n", _("first agument's value. If there is a second argument and the certificate's"));
++ printf (" %s\n", _("validity is less than its value, a STATE_CRITICAL is returned."));
++ printf (" %s\n", _("(When this option is used the URL is not checked by default. You can use"));
+ printf (" %s\n", _(" --continue-after-certificate to override this behavior)"));
+ printf (" %s\n", "--continue-after-certificate");
+ printf (" %s\n", _("Allows the HTTP check to continue after performing the certificate check."));
+@@ -2092,7 +2095,7 @@ print_help (void)
+ printf (" %s\n", _("Enable automatic decompression of body (CURLOPT_ACCEPT_ENCODING)."));
+ printf(" %s\n", "--haproxy-protocol");
+ printf(" %s\n", _("Send HAProxy proxy protocol v1 header (CURLOPT_HAPROXYPROTOCOL)."));
+- printf (" %s\n", "---cookie-jar=FILE");
++ printf (" %s\n", "--cookie-jar=FILE");
+ printf (" %s\n", _("Store cookies in the cookie jar and send them out when requested."));
+ printf ("\n");
+
=====================================
debian/patches/series
=====================================
@@ -3,4 +3,5 @@
# commited upstream
10_check_curl_fix_redirects
11_check_curl_raise_ssl_issue
+12_check_curl_add_docu
# feature patches
View it on GitLab: https://salsa.debian.org/nagios-team/monitoring-plugins/-/commit/a6b1db0c7c7d8878f555d539f15a6fa55eca002b
--
View it on GitLab: https://salsa.debian.org/nagios-team/monitoring-plugins/-/commit/a6b1db0c7c7d8878f555d539f15a6fa55eca002b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20240819/0ba3721d/attachment-0001.htm>
More information about the pkg-nagios-changes
mailing list