updated zabbix script

This commit is contained in:
Paul 2022-05-14 11:24:24 +02:00
parent 3afc909179
commit b1bc50e526

View File

@ -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")})