Small fix

Signed-off-by: Sven Velt <sven@velt.de>
This commit is contained in:
Sven Velt 2011-01-25 10:51:48 +01:00
parent 9985098997
commit a03ed7df41

View file

@ -227,9 +227,9 @@ class MonitoringPlugin(object):
self.add_multilineoutput(check.get('multilineoutput')) self.add_multilineoutput(check.get('multilineoutput'))
statusline = [] statusline = []
for retcode in [2, 1, 3, 0]: for retcode in self.returncode_priority:
if len(out[retcode]): if len(out[retcode]):
statusline.append(str(len(out[retcode])) + ' ' + self.RETURNSTRINGS[retcode] + ': ' + '/'.join(out[retcode])) statusline.append(str(len(out[retcode])) + ' ' + self.RETURNSTRINGS[retcode] + ': ' + ' '.join(out[retcode]))
statusline = ', '.join(statusline) statusline = ', '.join(statusline)
self.add_output(statusline) self.add_output(statusline)