summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_curl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index e25d7a79..7f45b5a7 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1775,9 +1775,9 @@ process_arguments (int argc, char **argv)
1775 invert_regex = true; 1775 invert_regex = true;
1776 break; 1776 break;
1777 case STATE_REGEX: 1777 case STATE_REGEX:
1778 if (!strcmp (optarg, "critical")) 1778 if (!strcasecmp (optarg, "critical"))
1779 state_regex = STATE_CRITICAL; 1779 state_regex = STATE_CRITICAL;
1780 else if (!strcmp (optarg, "warning")) 1780 else if (!strcasecmp (optarg, "warning"))
1781 state_regex = STATE_WARNING; 1781 state_regex = STATE_WARNING;
1782 else usage2 (_("Invalid state-regex option"), optarg); 1782 else usage2 (_("Invalid state-regex option"), optarg);
1783 break; 1783 break;
@@ -2061,8 +2061,8 @@ print_help (void)
2061 printf (" %s\n", "--invert-regex"); 2061 printf (" %s\n", "--invert-regex");
2062 printf (" %s\n", _("Return STATE if found, OK if not (STATE is CRITICAL, per default)")); 2062 printf (" %s\n", _("Return STATE if found, OK if not (STATE is CRITICAL, per default)"));
2063 printf (" %s\n", _("can be changed with --state--regex)")); 2063 printf (" %s\n", _("can be changed with --state--regex)"));
2064 printf (" %s\n", "--regex-state=STATE"); 2064 printf (" %s\n", "--state-regex=STATE");
2065 printf (" %s\n", _("Return STATE if regex is found, OK if not\n")); 2065 printf (" %s\n", _("Return STATE if regex is found, OK if not. STATE can be one of \"critical\",\"warning\""));
2066 printf (" %s\n", "-a, --authorization=AUTH_PAIR"); 2066 printf (" %s\n", "-a, --authorization=AUTH_PAIR");
2067 printf (" %s\n", _("Username:password on sites with basic authentication")); 2067 printf (" %s\n", _("Username:password on sites with basic authentication"));
2068 printf (" %s\n", "-b, --proxy-authorization=AUTH_PAIR"); 2068 printf (" %s\n", "-b, --proxy-authorization=AUTH_PAIR");