Skip to content

Conversation

@RincewindsHat
Copy link
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.
Copy link
Contributor

@andreasbaumann andreasbaumann left a comment

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
Member Author

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

Copy link
Contributor

@andreasbaumann andreasbaumann left a comment

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