Commit 0eaa557f authored by Bartłomiej Piotrowski's avatar Bartłomiej Piotrowski
Browse files

zabbix-agent: ignore user@ and user-runtime-dir@ units

parent 96fad709
......@@ -12,5 +12,11 @@ systemd1_manager = dbus.Interface(
)
units = systemd1_manager.ListUnits()
for unit in filter(lambda u: u[3] == "failed" and u[0] not in ignore, units):
for unit in filter(
lambda u: u[3] == "failed"
and u[0] not in ignore
and not u[0].startswith("user@")
and not u[0].startswith("user-runtime-dir@"),
units,
):
print(unit[0])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment