updated zabbix script
This commit is contained in:
parent
3afc909179
commit
b1bc50e526
@ -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")})
|
||||
|
Loading…
Reference in New Issue
Block a user