From 82bd09104e8045888e1ffdee12346fe513ec2888 Mon Sep 17 00:00:00 2001
From: thl-cmk <thl-cmk@outlook.com>
Date: Sun, 31 Dec 2023 10:42:23 +0000
Subject: [PATCH] Delete agent_fritzbox_smarthome

---
 checks/agent_fritzbox_smarthome | 44 ---------------------------------
 1 file changed, 44 deletions(-)
 delete mode 100644 checks/agent_fritzbox_smarthome

diff --git a/checks/agent_fritzbox_smarthome b/checks/agent_fritzbox_smarthome
deleted file mode 100644
index 26a7854..0000000
--- 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
-- 
GitLab