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

update project

parent 4403fa37
No related branches found
No related tags found
No related merge requests found
[PACKAGE]: ../../raw/master/mkp/agent_ssllabs-2.0.2-20240504.mkp "agent_ssllabs-2.0.2-20240504.mkp" [PACKAGE]: ../../raw/master/mkp/agent_ssllabs-2.0.3-20240506.mkp "agent_ssllabs-2.0.3-20240506.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
...@@ -12,8 +12,7 @@ ...@@ -12,8 +12,7 @@
# based on the ssllabs plugin from Karsten Schoeke karsten.schoeke@geobasis-bb.de # based on the ssllabs plugin from Karsten Schoeke karsten.schoeke@geobasis-bb.de
# see https://exchange.checkmk.com/p/ssllabs # see https://exchange.checkmk.com/p/ssllabs
# 2021-05-15: rewritten for CMK 2.0 by thl-cmk[at]outlook[dot]com # 2024-05-06: added pending to ok states for end points
# moved to ~/local/lib/check_mk/base/plugins/agent_based
# sample string_table: # sample string_table:
...@@ -22,7 +21,7 @@ ...@@ -22,7 +21,7 @@
# "host": "thl-cmk.hopto.org", # "host": "thl-cmk.hopto.org",
# "port": 443, # "port": 443,
# "protocol": "http", # "protocol": "http",
# "isPublic": false, # "isPublic": False,
# "status": "READY", # "status": "READY",
# "startTime": 1714559152230, # "startTime": 1714559152230,
# "testTime": 1714559237958, # "testTime": 1714559237958,
...@@ -35,8 +34,8 @@ ...@@ -35,8 +34,8 @@
# "statusMessage": "Ready", # "statusMessage": "Ready",
# "grade": "A+", # "grade": "A+",
# "gradeTrustIgnored": "A+", # "gradeTrustIgnored": "A+",
# "hasWarnings": false, # "hasWarnings": False,
# "isExceptional": true, # "isExceptional": True,
# "progress": 100, # "progress": 100,
# "duration": 85530, # "duration": 85530,
# "delegation": 1 # "delegation": 1
...@@ -47,7 +46,7 @@ ...@@ -47,7 +46,7 @@
# "host": "checkmk.com", # "host": "checkmk.com",
# "port": 443, # "port": 443,
# "protocol": "http", # "protocol": "http",
# "isPublic": false, # "isPublic": False,
# "status": "IN_PROGRESS", # "status": "IN_PROGRESS",
# "startTime": 1714563744895, # "startTime": 1714563744895,
# "engineVersion": "2.3.0", # "engineVersion": "2.3.0",
...@@ -59,8 +58,8 @@ ...@@ -59,8 +58,8 @@
# "statusMessage": "Ready", # "statusMessage": "Ready",
# "grade": "A+", # "grade": "A+",
# "gradeTrustIgnored": "A+", # "gradeTrustIgnored": "A+",
# "hasWarnings": false, # "hasWarnings": False,
# "isExceptional": true, # "isExceptional": True,
# "progress": 100, # "progress": 100,
# "duration": 72254, # "duration": 72254,
# "delegation": 1 # "delegation": 1
...@@ -296,7 +295,7 @@ def check_status(params: Mapping[str: any], end_points: Sequence[SSLLabsEndpoint ...@@ -296,7 +295,7 @@ def check_status(params: Mapping[str: any], end_points: Sequence[SSLLabsEndpoint
for end_point in end_points: for end_point in end_points:
name = f'{end_point.server_name}/{end_point.ip_address}' name = f'{end_point.server_name}/{end_point.ip_address}'
if end_point.status_message.lower() not in ['ready', 'in progress']: if end_point.status_message.lower() not in ['ready', 'in progress', 'pending']:
yield Result(state=State.WARN, notice=f'Status {name}: {end_point.status_message}') yield Result(state=State.WARN, notice=f'Status {name}: {end_point.status_message}')
...@@ -304,6 +303,7 @@ def check_ssllabs_grade(item: str, params: Mapping[str: any], section: SECTION) ...@@ -304,6 +303,7 @@ def check_ssllabs_grade(item: str, params: Mapping[str: any], section: SECTION)
try: try:
ssl_host: SSLLabsHost = section[item] ssl_host: SSLLabsHost = section[item]
except KeyError: except KeyError:
yield Result(state=State.UNKNOWN, summary=f'Item not found in monitoring data. ({str(section)})')
return None return None
value_store = get_value_store() value_store = get_value_store()
......
...@@ -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.2-20240504', 'version': '2.0.3-20240506',
'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': None} 'version.usable_until': None}
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