From b1bc50e526fb4da56442d029230b670add978154 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 14 May 2022 11:24:24 +0200 Subject: [PATCH] updated zabbix script --- states/zabbix/scripts/systemd_discovery.py | 3 --- 1 file changed, 3 deletions(-) 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")})