فهرست منبع

Merge branch 'arjenz-fix_check_ntp_time_stratum'

Sebastian Wolf 3 سال پیش
والد
کامیت
9604a27647
3فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 4 0
      NEWS
  2. 1 0
      THANKS.in
  3. 2 2
      plugins/check_ntp_time.c

+ 4 - 0
NEWS

@@ -1,5 +1,9 @@
 This file documents the major additions and syntax changes between releases.
 
+2.4.1 ????-??-??
+	FIXES
+	check_ntp_time: Ensure -W/-C (stratum warning/critical thresholds) are available as short options (#661)
+
 2.4.0 2021-11-18
 	ENHANCEMENTS
 	check_http: Add -o option (Append page body as performance data) (#615) (Tobias Leich)

+ 1 - 0
THANKS.in

@@ -28,6 +28,7 @@ Anton Lofgren
 Antony Simmonds
 Aravind Gottipati
 Ari Pollak
+Arjenz Zonneveld
 Arkadiusz Miśkiewicz (arekm)
 Arnaud Quette
 Arnold Cavazos

+ 2 - 2
plugins/check_ntp_time.c

@@ -490,7 +490,7 @@ int process_arguments(int argc, char **argv){
 		usage ("\n");
 
 	while (1) {
-		c = getopt_long (argc, argv, "Vhv46qw:c:t:H:p:o:d:", longopts, &option);
+		c = getopt_long (argc, argv, "Vhv46qw:c:t:H:p:o:d:C:W:", longopts, &option);
 		if (c == -1 || c == EOF || c == 1)
 			break;
 
@@ -722,6 +722,6 @@ void
 print_usage(void)
 {
 	printf ("%s\n", _("Usage:"));
-	printf(" %s -H <host> [-4|-6] [-w <warn>] [-c <crit>] [-v verbose] [-o <time offset>] [-d <delay>]\n", progname);
+	printf(" %s -H <host> [-4|-6] [-w <warn>] [-c <crit>] [-v verbose] [-o <time offset>] [-d <delay>] [-W <stratum warn>] [-C <stratum crit>]\n", progname);
 }