From b12edc52d6b645652f7ea813f2e6557c7f9f0fb0 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Sat, 5 Apr 2008 08:02:47 +0000 Subject: [PATCH] check_ntp and check_ntp_peer now show proper jitter/stratum thresholds longopts in --help git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1977 f882894a-f735-0410-b71e-b25c423dba1c --- NEWS | 1 + plugins/check_ntp.c | 4 ++-- plugins/check_ntp_peer.c | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index 57bf838..72da71d 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,7 @@ This file documents the major additions and syntax changes between releases. Reverted back to using pst3 for Solaris systems. Fixed issues re: -m64 needed to compile on 64bit systems If applicable, Gettext linked dynamically instead of statically check_dig can now pass arguments dig by using -A/--dig-arguments (#1874041/#1889453) + check_ntp and check_ntp_peer now show proper jitter/stratum thresholds longopts in --help 1.4.11 13th December 2007 Fixed check_http regression in 1.4.10 where following redirects to diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index 6f965ce..28a8f89 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c @@ -849,9 +849,9 @@ void print_help(void){ printf (" %s\n", _("Offset to result in warning status (seconds)")); printf (" %s\n", "-c, --critical=THRESHOLD"); printf (" %s\n", _("Offset to result in critical status (seconds)")); - printf (" %s\n", "-j, --warning=THRESHOLD"); + printf (" %s\n", "-j, --jwarn=THRESHOLD"); printf (" %s\n", _("Warning threshold for jitter")); - printf (" %s\n", "-k, --critical=THRESHOLD"); + printf (" %s\n", "-k, --jcrit=THRESHOLD"); printf (" %s\n", _("Critical threshold for jitter")); printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); printf (_(UT_VERBOSE)); diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 753b7b2..536883d 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c @@ -645,13 +645,13 @@ void print_help(void){ printf (" %s\n", _("Offset to result in warning status (seconds)")); printf (" %s\n", "-c, --critical=THRESHOLD"); printf (" %s\n", _("Offset to result in critical status (seconds)")); - printf (" %s\n", "-W, --warning=THRESHOLD"); + printf (" %s\n", "-W, --swarn=THRESHOLD"); printf (" %s\n", _("Warning threshold for stratum")); - printf (" %s\n", "-C, --critical=THRESHOLD"); + printf (" %s\n", "-C, --scrit=THRESHOLD"); printf (" %s\n", _("Critical threshold for stratum")); - printf (" %s\n", "-j, --warning=THRESHOLD"); + printf (" %s\n", "-j, --jwarn=THRESHOLD"); printf (" %s\n", _("Warning threshold for jitter")); - printf (" %s\n", "-k, --critical=THRESHOLD"); + printf (" %s\n", "-k, --jcrit=THRESHOLD"); printf (" %s\n", _("Critical threshold for jitter")); printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); printf (_(UT_VERBOSE)); -- 2.30.2