diff --git a/README.md b/README.md index 85216b2d4914887a9be6b060e4ce9a5f84385584..ea1c0578f18ff851ba84acb4a557c72502ce5907 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[PACKAGE]: ../../raw/master/mkp/agent_ssllabs-2.0.5-20240617.mkp "agent_ssllabs-2.0.5-20240617.mkp" +[PACKAGE]: ../../raw/master/mkp/agent_ssllabs-2.0.6-20240803.mkp "agent_ssllabs-2.0.6-20240803.mkp" # 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. diff --git a/mkp/agent_ssllabs-2.0.6-20240803.mkp b/mkp/agent_ssllabs-2.0.6-20240803.mkp new file mode 100644 index 0000000000000000000000000000000000000000..94cb9fb51f5704b4dd88de02137997518a44b147 Binary files /dev/null and b/mkp/agent_ssllabs-2.0.6-20240803.mkp differ diff --git a/source/agent_based/ssllabs_grade.py b/source/agent_based/ssllabs_grade.py index 9dd8d96db297ac2703aa4aa85205be75fc5c588b..f8e5d9e55fb738357527b113fbc876409d2e8782 100644 --- a/source/agent_based/ssllabs_grade.py +++ b/source/agent_based/ssllabs_grade.py @@ -16,6 +16,7 @@ # 2024-05-07: fixed crash on wrong params int "ERROR" state # changed max CMK version in package info to 2.3.0b1 # 2024-06-04: added support for API error messages +# 2024-08-03: fixed crash on missing start time # sample string_table: # [ @@ -157,7 +158,7 @@ class SSLLabsHost: protocol: str is_public: bool status: str - start_time: int + start_time: int | None test_time: int | None engine_version: str criteria_version: str @@ -362,7 +363,8 @@ def check_ssllabs_grade(item: str, params: Mapping[str: any], section: SECTION) yield Result(state=State.OK, notice=f'Host: {ssl_host.host}') yield Result(state=State.OK, notice=f'Port: {ssl_host.port}') yield Result(state=State.OK, notice=f'Protocol: {ssl_host.protocol}') - yield Result(state=State.OK, notice=f'Start Time: {render.datetime(ssl_host.start_time / 1000)}') + if ssl_host.start_time is not None: + yield Result(state=State.OK, notice=f'Start Time: {render.datetime(ssl_host.start_time / 1000)}') if ssl_host.test_time is not None: yield Result(state=State.OK, notice=f'Test Time: {render.datetime(ssl_host.test_time / 1000)}') yield Result(state=State.OK, notice=f'Engine version: {ssl_host.engine_version}') diff --git a/source/packages/agent_ssllabs b/source/packages/agent_ssllabs index fb3c4a56b4926c2a57b601e02efb5dc740f889a6..9ed2dcc794c041685e28135add522e78a1c575a5 100644 --- a/source/packages/agent_ssllabs +++ b/source/packages/agent_ssllabs @@ -15,7 +15,7 @@ 'web': ['plugins/wato/agent_ssllabs.py']}, 'name': 'agent_ssllabs', 'title': 'ssllabs api check', - 'version': '2.0.5-20240617', + 'version': '2.0.6-20240803', 'version.min_required': '2.3.0b1', 'version.packaged': 'cmk-mkp-tool 0.2.0', 'version.usable_until': '2.4.0b1'}