diff --git a/files/pynagsystemd.py b/files/pynagsystemd.py index c612f21..e0589de 100755 --- a/files/pynagsystemd.py +++ b/files/pynagsystemd.py @@ -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')]