diff --git a/checks/agent_fritzbox_smarthome b/checks/agent_fritzbox_smarthome deleted file mode 100644 index 26a785476309e6f6aae7e43c7d47bd8579f0f397..0000000000000000000000000000000000000000 --- a/checks/agent_fritzbox_smarthome +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env python3 -# -*- encoding: utf-8; py-indent-offset: 4 -*- -# -# modifications by thl-cmk[at]outlook[dot]com -# 2023-12-18: modified to work with cmk 2.2.x -# changed password to use password store -# - -def agent_fritzbox_smarthome_arguments(params, hostname, ipaddress): - args = [ - ipaddress - ] - - if (password := params.get("password")) is not None: - args.extend(["--password"] + [passwordstore_get_cmdline("%s", password)]) - - if (username := params.get("username")) is not None: - args.extend(["--user"] + [username]) - - if (port := params.get("port")) is not None: - args.extend(["--port"] + [port]) - - if (protocol := params.get("protocol")) is not None: - args.extend(["--protocol"] + [protocol]) - - if (ssl := params.get("ssl")) is not None: - args.append("--ignore_ssl") - - # if (piggyback := params.get("piggyback")) is not None: - # args.append("--piggyback") - - if (prefix := params.get("prefix")) is not None: - args.extend(["--prefix"] + [hostname]) - - if (testing := params.get("testing")) is not None: - args.append("--testing") - - if (no_piggyback := params.get("no_piggyback")) is not None: - args.append("--no-piggyback") - - return args - - -special_agent_info['fritzbox_smarthome'] = agent_fritzbox_smarthome_arguments