Skip to content

Check curl regex state - #2014

Merged
RincewindsHat merged 4 commits into
monitoring-plugins:masterfrom
RincewindsHat:check_curl_regex_state
Oct 6, 2024
Merged

RincewindsHat merged 4 commits into
monitoring-plugins:masterfrom
RincewindsHat:check_curl_regex_state

Conversation

@RincewindsHat

Copy link
Copy Markdown
Member

This mainly fixes a problem introduced in #2006 ( f29785f ), where the option really is state-regex but the help says regex-state.

The help output of `check-curl` contained a typo,
the real option is `state-regex` and not `regex-state` as
the help suggests.
Also added the two possible options to avoid confusion.
Previously the --state-regex option accepted only "critical" and
"warning" as values.
This commit changes the strcmp there to strcasecmp to be more tolerant
regarding the input.

@andreasbaumann andreasbaumann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for fixing all the things I left out.. :-)

@waja waja added this to the 2.4.1 milestone Aug 19, 2024
@RincewindsHat

Copy link
Copy Markdown
Member Author

@andreasbaumann would you like to press the "approve" button? :-)

@andreasbaumann andreasbaumann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving (thats a more than just a button) ;-)

@RincewindsHat
RincewindsHat merged commit 114e504 into monitoring-plugins:master Oct 6, 2024
@RincewindsHat
RincewindsHat deleted the check_curl_regex_state branch October 6, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants