summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-12-28 12:30:23 +0100
committerGitHub <noreply@github.com>2025-12-28 12:30:23 +0100
commit9c26154698315e06b355b65dd9515419b14b4e0c (patch)
tree8be76d089d928f35eb7eedccf58122cd562834f8 /plugins/check_curl.c
parentf8db90c206e777a21ff69a301406a11ca627034c (diff)
parent828a9720b10814c5836d03aa35af05d196c4104b (diff)
downloadmonitoring-plugins-9c26154698315e06b355b65dd9515419b14b4e0c.tar.gz
Merge branch 'master' into fix/check-curl-append-query-string-on-redirect
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r--plugins/check_curl.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index ca6357a7..bd3f7dce 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1667,6 +1667,8 @@ void print_help(void) {
1667 printf(" %s\n", _("certificate matches the hostname of the server, or if the certificate")); 1667 printf(" %s\n", _("certificate matches the hostname of the server, or if the certificate"));
1668 printf(" %s\n", _("has a valid chain of trust to one of the locally installed CAs.")); 1668 printf(" %s\n", _("has a valid chain of trust to one of the locally installed CAs."));
1669 printf("\n"); 1669 printf("\n");
1670 printf(" %s\n", _("To also verify certificates, please set --verify-cert."));
1671 printf("\n");
1670 printf("%s\n", _("Examples:")); 1672 printf("%s\n", _("Examples:"));
1671 printf(" %s\n\n", "CHECK CONTENT: check_curl -w 5 -c 10 --ssl -H www.verisign.com"); 1673 printf(" %s\n\n", "CHECK CONTENT: check_curl -w 5 -c 10 --ssl -H www.verisign.com");
1672 printf(" %s\n", _("When the 'www.verisign.com' server returns its content within 5 seconds,")); 1674 printf(" %s\n", _("When the 'www.verisign.com' server returns its content within 5 seconds,"));
@@ -1676,16 +1678,18 @@ void print_help(void) {
1676 _("the 5-second threshold, a STATE_WARNING will be returned. When an error occurs,")); 1678 _("the 5-second threshold, a STATE_WARNING will be returned. When an error occurs,"));
1677 printf(" %s\n", _("a STATE_CRITICAL will be returned.")); 1679 printf(" %s\n", _("a STATE_CRITICAL will be returned."));
1678 printf("\n"); 1680 printf("\n");
1679 printf(" %s\n\n", "CHECK CERTIFICATE: check_curl -H www.verisign.com -C 14"); 1681 printf(" %s\n\n", "CHECK CERTIFICATE: check_curl -H www.verisign.com -C 14 -D");
1680 printf(" %s\n", 1682 printf(" %s\n",
1681 _("When the certificate of 'www.verisign.com' is valid for more than 14 days,")); 1683 _("When the certificate of 'www.verisign.com' is valid for more than 14 days,"));
1682 printf(" %s\n", 1684 printf(" %s\n",
1683 _("a STATE_OK is returned. When the certificate is still valid, but for less than")); 1685 _("a STATE_OK is returned. When the certificate is still valid, but for less than"));
1684 printf(" %s\n", 1686 printf(" %s\n",
1685 _("14 days, a STATE_WARNING is returned. A STATE_CRITICAL will be returned when")); 1687 _("14 days, a STATE_WARNING is returned. A STATE_CRITICAL will be returned when"));
1686 printf(" %s\n\n", _("the certificate is expired.")); 1688 printf(" %s\n", _("the certificate is expired."));
1689 printf("\n");
1690 printf(" %s\n", _("The -D flag enforces a certificate validation beyond expiration time."));
1687 printf("\n"); 1691 printf("\n");
1688 printf(" %s\n\n", "CHECK CERTIFICATE: check_curl -H www.verisign.com -C 30,14"); 1692 printf(" %s\n\n", "CHECK CERTIFICATE: check_curl -H www.verisign.com -C 30,14 -D");
1689 printf(" %s\n", 1693 printf(" %s\n",
1690 _("When the certificate of 'www.verisign.com' is valid for more than 30 days,")); 1694 _("When the certificate of 'www.verisign.com' is valid for more than 30 days,"));
1691 printf(" %s\n", 1695 printf(" %s\n",