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

update project

parent 89d35044
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -244,6 +244,7 @@ def check_vsphere_topo( ...@@ -244,6 +244,7 @@ def check_vsphere_topo(
if (vm_to_data_stores := ls_connection.query(query=query)) is not None: if (vm_to_data_stores := ls_connection.query(query=query)) is not None:
for vm, data_stores in vm_to_data_stores: for vm, data_stores in vm_to_data_stores:
vm_name: str = adjust_name(vm, params.get(PARAM_VM_NAMES, {})) vm_name: str = adjust_name(vm, params.get(PARAM_VM_NAMES, {}))
vm_name = name_map(vm_name, vm_name)
if vm_name in objects.topo_objects: if vm_name in objects.topo_objects:
data_stores = data_stores.split(',') data_stores = data_stores.split(',')
for data_store in data_stores: for data_store in data_stores:
......
...@@ -217,13 +217,14 @@ def _parameter_form() -> Dictionary: ...@@ -217,13 +217,14 @@ def _parameter_form() -> Dictionary:
PARAM_MAP_NAME_CMK: DictElement( PARAM_MAP_NAME_CMK: DictElement(
parameter_form=String( parameter_form=String(
title=Title('Checkmk name'), title=Title('Checkmk name'),
custom_validate=(MatchRegex( custom_validate=(
regex=r'^[0-9a-zA-Z\.\-\_]+$', MatchRegex(
error_msg=Message( regex=r'^[0-9a-zA-Z\.\-\_]+$',
'Your input does not match the required format. ' error_msg=Message(
'Only "0-9a-zA-Z_-." are allowed.' 'Your input does not match the required format. '
) 'Only "0-9a-zA-Z_-." are allowed.'
),) )
),)
), ),
required=True, required=True,
) )
......
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