|
@@ -15,6 +15,7 @@ from cmk.server_side_calls.v1._utils import Secret
|
|
|
|
|
|
class Params(BaseModel):
|
|
|
check_tls: bool | None = None
|
|
|
+ exclude_sections: str | None = None
|
|
|
user: str
|
|
|
password: Secret
|
|
|
|
|
@@ -26,7 +27,10 @@ def commands_function(params: Params, host_config: HostConfig) -> Iterator[Speci
|
|
|
params.password.unsafe(),
|
|
|
]
|
|
|
if params.check_tls is not None and params.check_tls is True:
|
|
|
- command_arguments += ["--verify_tls"]
|
|
|
+ command_arguments += ["--verify-tls"]
|
|
|
+
|
|
|
+ if params.exclude_sections:
|
|
|
+ command_arguments += ["--exclude=" + params.exclude_sections]
|
|
|
|
|
|
yield SpecialAgentCommand(command_arguments=command_arguments)
|
|
|
|