Small fix
Signed-off-by: Sven Velt <sven@velt.de>
This commit is contained in:
parent
9985098997
commit
a03ed7df41
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue