diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-06 21:24:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-06 21:24:46 (GMT) |
commit | 114e504403d1e06eccac08e7b8d99e0614581515 (patch) | |
tree | 725119acfb75ca7c37906fc41b7a3870f531546c /plugins | |
parent | 78b591d52ac05bdea98e86974411f22c55f43796 (diff) | |
parent | bc6dda5286cb23a6845d9e4fb492c6bd5212f04c (diff) | |
download | monitoring-plugins-114e504403d1e06eccac08e7b8d99e0614581515.tar.gz |
Merge pull request #2014 from RincewindsHat/check_curl_regex_state
Check curl regex state
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_curl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index e25d7a7..7f45b5a 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"); |