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

Delete agent_fritzbox_smarthome

parent 56fdd009
No related branches found
No related tags found
No related merge requests found
#!/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
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