Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit cacbeaea authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent e7994ddf
No related branches found
No related tags found
No related merge requests found
...@@ -292,9 +292,9 @@ def get_curl_files(conf: Tuple[str, Dict[str, List[any]]]) -> FileGenerator: ...@@ -292,9 +292,9 @@ def get_curl_files(conf: Tuple[str, Dict[str, List[any]]]) -> FileGenerator:
pub_md5 = None pub_md5 = None
pub_sha256 = None pub_sha256 = None
pub_key = None pub_key = None
try: try: # 2022-03-23: added ssh settings
insecure, ocsp, no_revoke, cert_chain = url_settings['cert_verify'] insecure, ocsp, no_revoke, cert_chain = url_settings['cert_verify']
except ValueError: except ValueError: # 2022-03-23: added ssh settings
insecure, ocsp, no_revoke, cert_chain, pub_md5, pub_sha256, pub_key = url_settings['cert_verify'] insecure, ocsp, no_revoke, cert_chain, pub_md5, pub_sha256, pub_key = url_settings['cert_verify']
if insecure: if insecure:
options_array.append(f'--insecure') options_array.append(f'--insecure')
...@@ -318,7 +318,7 @@ def get_curl_files(conf: Tuple[str, Dict[str, List[any]]]) -> FileGenerator: ...@@ -318,7 +318,7 @@ def get_curl_files(conf: Tuple[str, Dict[str, List[any]]]) -> FileGenerator:
if pub_key: if pub_key:
yield PluginConfig( yield PluginConfig(
base_os=_os, base_os=_os,
lines=[cert_chain], lines=[pub_key],
target=Path(f'curl/curl_item_{curl_item}.pub_key'), target=Path(f'curl/curl_item_{curl_item}.pub_key'),
include_header=False, include_header=False,
) )
......
No preview for this file type
...@@ -330,7 +330,7 @@ _option_curl_service = ('curl_service', ...@@ -330,7 +330,7 @@ _option_curl_service = ('curl_service',
allow_empty=False, allow_empty=False,
size=90, size=90,
placeholder='https://www.example.com', placeholder='https://www.example.com',
forbidden_chars=forbidden_chars, # forbidden_chars=forbidden_chars,
), ),
], ],
orientation='horizontal', orientation='horizontal',
...@@ -353,7 +353,7 @@ _option_verify_remote_host = ('cert_verify', ...@@ -353,7 +353,7 @@ _option_verify_remote_host = ('cert_verify',
Checkbox('Use OCSP to check certificate status'), Checkbox('Use OCSP to check certificate status'),
Checkbox('Disable cert revocation checks (WinSSL)'), Checkbox('Disable cert revocation checks (WinSSL)'),
Optional(Foldable(CAorCAChain()), label='Certificate to verify against', ), Optional(Foldable(CAorCAChain()), label='Certificate to verify against', ),
Optional(TextUnicode(size=35, minlen=32, maxlen=32, regex='[0-9a-fA-F]', ), Optional(TextUnicode(size=40, minlen=32, maxlen=32, regex='[0-9a-fA-F]', ),
label='Expected MD5 hash of pub key'), label='Expected MD5 hash of pub key'),
Optional(TextUnicode(size=60, allow_empty=False), Optional(TextUnicode(size=60, allow_empty=False),
label='Expected SHA256 hash of pub key'), label='Expected SHA256 hash of pub key'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment