plugins: move duplicate input validation to shared utility by UiP9AV6Y · Pull Request #2161 · monitoring-plugins/monitoring-plugins · GitHub
Skip to content

plugins: move duplicate input validation to shared utility#2161

Open
UiP9AV6Y wants to merge 1 commit into
monitoring-plugins:masterfrom
UiP9AV6Y:refactor/plugins_validation_utils
Open

plugins: move duplicate input validation to shared utility#2161
UiP9AV6Y wants to merge 1 commit into
monitoring-plugins:masterfrom
UiP9AV6Y:refactor/plugins_validation_utils

Conversation

@UiP9AV6Y

Copy link
Copy Markdown

both check_curl and check_http have implemented the same validation function. this change relocates the implementation to a shared location to be used by both.

both check_curl and check_http have implemented the same
validation function. this change relocates the implementation
to a shared location to be used by both.
@andreasbaumann

Copy link
Copy Markdown
Contributor

@andreasbaumann

andreasbaumann commented Sep 27, 2025

Copy link
Copy Markdown
Contributor

There is a counter-argument if we would go in the direction that instead of having a check_curl we would have a

  • check_http based on libcurl
  • check_ftp, also based on libcurl
    etc.
    Then having some common shared code would be a good idea..

@UiP9AV6Y

Copy link
Copy Markdown
Author

i intend add support for certificate authentication (-J and -K) to check_tcp and check_smtp in the near future where i intend to use the same validation code again; this code is merely in preparation for that. sorry for not stating my full intentions with this MR in the first place.

@andreasbaumann

Copy link
Copy Markdown
Contributor

Ah, that's different then. :-)

UiP9AV6Y added a commit to UiP9AV6Y/monitoring-plugins that referenced this pull request Sep 29, 2025
establish a secure remote connection using client certificates.
using this feature implicitly enables SSL usage for the connection.

depends on monitoring-plugins#2161
@RincewindsHat

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants