mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2026-01-22 01:27:38 +01:00
fix: service name not shown pynag
This commit is contained in:
@@ -32,7 +32,8 @@ class SystemdStatus(nagiosplugin.Resource):
|
|||||||
if pres:
|
if pres:
|
||||||
result = ""
|
result = ""
|
||||||
for line in io.StringIO(pres.decode('utf-8')):
|
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')]
|
return [nagiosplugin.Metric('systemd', (False, result), context='systemd')]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user