فهرست منبع

Fixed performance-data output syntax-error. Updated NEWS and THANKS.in

Daniel Bond 8 سال پیش
والد
کامیت
824cf73731
3فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 4 0
      NEWS
  2. 1 0
      THANKS.in
  3. 1 1
      plugins/check_ntp_time.c

+ 4 - 0
NEWS

@@ -1,5 +1,9 @@
 This file documents the major additions and syntax changes between releases.
 
+2.2.x TBD
+	ENHANCEMENTS
+        check_ntp_time: Add support for monitoring stratum of timesources
+
 2.2.1 2017-04-19
 	FIXES
 	check_users: not accepting zero as the threshold

+ 1 - 0
THANKS.in

@@ -67,6 +67,7 @@ Craig Orsinger
 Damian Myerscough
 Daniel Austin
 Daniel Bimschas
+Daniel Bond
 Daniel Leib
 Daniel Scott
 Daniël van Eeden

+ 1 - 1
plugins/check_ntp_time.c

@@ -635,7 +635,7 @@ int main(int argc, char *argv[]){
 		xasprintf(&perfdata_line, "");
 	} else {
 	  xasprintf(&result_line, "%s %s %.10g secs, stratum best:%d worst:%d", result_line, _("Offset"), offset, servers_best_stratum, servers_worst_stratum);
-	  xasprintf(&perfdata_line, "%s, stratum_best=%d, stratum_worst=%d, num_warn_stratum=%d, num_crit_stratum=%d", perfd_offset(offset), servers_best_stratum, servers_worst_stratum, servers_warn_stratum, servers_crit_stratum);
+	  xasprintf(&perfdata_line, "%s stratum_best=%d stratum_worst=%d num_warn_stratum=%d num_crit_stratum=%d", perfd_offset(offset), servers_best_stratum, servers_worst_stratum, servers_warn_stratum, servers_crit_stratum);
 	}
 	printf("%s|%s\n", result_line, perfdata_line);