NAF: Output SV/SM lag and thresholds in H:MM:SS as well.
This commit is contained in:
parent
264b0f5f21
commit
800c1ecf0b
|
@ -430,7 +430,7 @@ class CheckNAF(SNMPMonitoringPlugin):
|
|||
|
||||
if kwa['rc_lag'] in [1,2]:
|
||||
max_lag = [None, kwa['warn'], kwa['crit']][kwa['rc_lag']]
|
||||
output = 'Lag too high (%s > %s)! ' % (kwa['lag'], max_lag)
|
||||
output = 'Lag too high (%s (%s) > %s (%s))! ' % (kwa['lag'], self.seconds_to_hms(kwa['lag']), max_lag, self.seconds_to_hms(max_lag))
|
||||
else:
|
||||
output = ''
|
||||
|
||||
|
|
Loading…
Reference in a new issue