diff --git a/states/zabbix/scripts/systemd_discovery.py b/states/zabbix/scripts/systemd_discovery.py index 39e4099..363c129 100644 --- a/states/zabbix/scripts/systemd_discovery.py +++ b/states/zabbix/scripts/systemd_discovery.py @@ -15,9 +15,6 @@ def main(): output_is_enabled = subprocess.run(f""" systemctl is-enabled {line.decode("utf-8")} """,shell=True,capture_output=True).stdout.decode('utf-8') - #output_is_active = subprocess.run(f""" - # systemctl is-active {line.decode("utf-8")} - # """,shell=True,capture_output=True).stdout.decode('utf-8') if re.match("^enabled", output_is_enabled) is not None: ret["data"].append({"{#SERVICE}": line.decode("utf-8")})