mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 06:41:36 +01:00
fix: service name not shown pynag
This commit is contained in:
@@ -32,7 +32,8 @@ class SystemdStatus(nagiosplugin.Resource):
|
||||
if pres:
|
||||
result = ""
|
||||
for line in io.StringIO(pres.decode('utf-8')):
|
||||
result = "%s %s" % (result, line.split(' ')[0])
|
||||
# format is DOT_SPECIA_CHAR name service failed ..
|
||||
result = "%s %s" % (result, line.split(' ')[1])
|
||||
|
||||
return [nagiosplugin.Metric('systemd', (False, result), context='systemd')]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user