Explorar o código

NAF: Output SV/SM lag and thresholds in H:MM:SS as well.

Sebastian Harl %!s(int64=14) %!d(string=hai) anos
pai
achega
800c1ecf0b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      check_naf.py

+ 1 - 1
check_naf.py

@@ -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 = ''