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 f5226bb7 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent dd26dd97
No related branches found
No related tags found
No related merge requests found
[PACKAGE]: ../../raw/master/mkp/agent_ssllabs-2.0.3-20240507.mkp "agent_ssllabs-2.0.3-20240507.mkp" [PACKAGE]: ../../raw/master/mkp/agent_ssllabs-2.0.3-20240516.mkp "agent_ssllabs-2.0.3-20240516.mkp"
# Qualys SSL Labs REST API special agent # Qualys SSL Labs REST API special agent
This Agent uses die Qualys SSL Labs REST API to scan a list of servers for there SSL status. The plugin will check the given server and all end points reported by the SSL Labs scan. This Agent uses die Qualys SSL Labs REST API to scan a list of servers for there SSL status. The plugin will check the given server and all end points reported by the SSL Labs scan.
......
File added
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
# 2021-05-16: changed arguments to argparse # 2021-05-16: changed arguments to argparse
# added options for publish results and max cache age # added options for publish results and max cache age
# 2024-05-01: refactoring # 2024-05-01: refactoring
# 2024-05-16: fixed proxy usage
# removed check_mk section -> no way to differentiate from checkmk agent section check_mk
# sample agent output (formatted) # sample agent output (formatted)
# <<<check_mk>>> # <<<check_mk>>>
...@@ -174,8 +176,7 @@ def connect_ssllabs_api(ssl_host_address: str, host_cache: str, args: Args, ) -> ...@@ -174,8 +176,7 @@ def connect_ssllabs_api(ssl_host_address: str, host_cache: str, args: Args, ) ->
) )
proxies = {} proxies = {}
if args.proxy is not None: if args.proxy is not None:
proxies = {'https': args.proxy.split('/')[-1]} # remove 'https://' from proxy string proxies = {'https': args.proxy}
try: try:
response = get( response = get(
url=url, url=url,
...@@ -215,9 +216,9 @@ def agent_ssllsbs_main(args: Args) -> int: ...@@ -215,9 +216,9 @@ def agent_ssllsbs_main(args: Args) -> int:
ssl_hosts = args.ssl_hosts.split(',') ssl_hosts = args.ssl_hosts.split(',')
# Output general information about the agent # Output general information about the agent
sys_stdout.write('<<<check_mk>>>\n') # sys_stdout.write('<<<check_mk>>>\n')
sys_stdout.write(f'Version: {VERSION}\n') # sys_stdout.write(f'Version: {VERSION}\n')
sys_stdout.write('AgentOS: linux\n') # sys_stdout.write('AgentOS: linux\n')
# create cache directory, if it not exists # create cache directory, if it not exists
Path(cache_dir).mkdir(parents=True, exist_ok=True) Path(cache_dir).mkdir(parents=True, exist_ok=True)
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
'web': ['plugins/wato/agent_ssllabs.py']}, 'web': ['plugins/wato/agent_ssllabs.py']},
'name': 'agent_ssllabs', 'name': 'agent_ssllabs',
'title': 'ssllabs api check', 'title': 'ssllabs api check',
'version': '2.0.3-20240507', 'version': '2.0.3-20240516',
'version.min_required': '2.2.0b1', 'version.min_required': '2.2.0b1',
'version.packaged': '2.2.0p24', 'version.packaged': '2.2.0p24',
'version.usable_until': '2.3.0b1'} 'version.usable_until': '2.3.0b1'}
...@@ -59,8 +59,11 @@ def _valuespec_special_agents_ssllabs(): ...@@ -59,8 +59,11 @@ def _valuespec_special_agents_ssllabs():
)), )),
('proxy', ('proxy',
TextAscii( TextAscii(
title=_('proxy server, if required'), title=_('proxy server'),
help=_('proxy in the format: https://ip-addres|servername:port'), size=100,
help=_(
'proxy in the format: <protocol>://<ip-address|server-name>:<port>, i.e.: http://192.168.10.10:3128'
),
)), )),
('publish_results', ('publish_results',
FixedValue( FixedValue(
......
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