Răsfoiți Sursa

check_ntp_peer: Fix --help output for -m and -n

Fix the threshold specifications in the example for checking the number
of truechimers.

Reported by Marc Haber on the "nagios-users" mailing list (Message-ID:
<20120722142840.GA6931@torres.zugschlus.de>).
Holger Weiss 13 ani în urmă
părinte
comite
cc04d9f188
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      plugins/check_ntp_peer.c

+ 1 - 1
plugins/check_ntp_peer.c

@@ -704,7 +704,7 @@ void print_help(void){
 	printf("  %s\n", ("./check_ntp_peer -H ntpserv -w 0.5 -c 1 -j -1:100 -k -1:200"));
 	printf("  %s\n", ("./check_ntp_peer -H ntpserv -w 0.5 -c 1 -j -1:100 -k -1:200"));
 	printf("\n");
 	printf("\n");
 	printf(" %s\n", _("Only check the number of usable time sources (\"truechimers\"):"));
 	printf(" %s\n", _("Only check the number of usable time sources (\"truechimers\"):"));
-	printf("  %s\n", ("./check_ntp_peer -H ntpserv -m :5 -n :3"));
+	printf("  %s\n", ("./check_ntp_peer -H ntpserv -m @5 -n @3"));
 	printf("\n");
 	printf("\n");
 	printf(" %s\n", _("Check only stratum:"));
 	printf(" %s\n", _("Check only stratum:"));
 	printf("  %s\n", ("./check_ntp_peer -H ntpserv -W 4 -C 6"));
 	printf("  %s\n", ("./check_ntp_peer -H ntpserv -W 4 -C 6"));