summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-04-05 08:02:47 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-04-05 08:02:47 (GMT)
commitb12edc52d6b645652f7ea813f2e6557c7f9f0fb0 (patch)
tree8dd4d135a58201be89fcb0dc4f74830d54006bbb
parent2a4640f6719b9688a68b796f697209b9b14cd179 (diff)
downloadmonitoring-plugins-b12edc52d6b645652f7ea813f2e6557c7f9f0fb0.tar.gz
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
-rw-r--r--NEWS1
-rw-r--r--plugins/check_ntp.c4
-rw-r--r--plugins/check_ntp_peer.c8
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.
16 Reverted back to using pst3 for Solaris systems. Fixed issues re: -m64 needed to compile on 64bit systems 16 Reverted back to using pst3 for Solaris systems. Fixed issues re: -m64 needed to compile on 64bit systems
17 If applicable, Gettext linked dynamically instead of statically 17 If applicable, Gettext linked dynamically instead of statically
18 check_dig can now pass arguments dig by using -A/--dig-arguments (#1874041/#1889453) 18 check_dig can now pass arguments dig by using -A/--dig-arguments (#1874041/#1889453)
19 check_ntp and check_ntp_peer now show proper jitter/stratum thresholds longopts in --help
19 20
201.4.11 13th December 2007 211.4.11 13th December 2007
21 Fixed check_http regression in 1.4.10 where following redirects to 22 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){
849 printf (" %s\n", _("Offset to result in warning status (seconds)")); 849 printf (" %s\n", _("Offset to result in warning status (seconds)"));
850 printf (" %s\n", "-c, --critical=THRESHOLD"); 850 printf (" %s\n", "-c, --critical=THRESHOLD");
851 printf (" %s\n", _("Offset to result in critical status (seconds)")); 851 printf (" %s\n", _("Offset to result in critical status (seconds)"));
852 printf (" %s\n", "-j, --warning=THRESHOLD"); 852 printf (" %s\n", "-j, --jwarn=THRESHOLD");
853 printf (" %s\n", _("Warning threshold for jitter")); 853 printf (" %s\n", _("Warning threshold for jitter"));
854 printf (" %s\n", "-k, --critical=THRESHOLD"); 854 printf (" %s\n", "-k, --jcrit=THRESHOLD");
855 printf (" %s\n", _("Critical threshold for jitter")); 855 printf (" %s\n", _("Critical threshold for jitter"));
856 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 856 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
857 printf (_(UT_VERBOSE)); 857 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){
645 printf (" %s\n", _("Offset to result in warning status (seconds)")); 645 printf (" %s\n", _("Offset to result in warning status (seconds)"));
646 printf (" %s\n", "-c, --critical=THRESHOLD"); 646 printf (" %s\n", "-c, --critical=THRESHOLD");
647 printf (" %s\n", _("Offset to result in critical status (seconds)")); 647 printf (" %s\n", _("Offset to result in critical status (seconds)"));
648 printf (" %s\n", "-W, --warning=THRESHOLD"); 648 printf (" %s\n", "-W, --swarn=THRESHOLD");
649 printf (" %s\n", _("Warning threshold for stratum")); 649 printf (" %s\n", _("Warning threshold for stratum"));
650 printf (" %s\n", "-C, --critical=THRESHOLD"); 650 printf (" %s\n", "-C, --scrit=THRESHOLD");
651 printf (" %s\n", _("Critical threshold for stratum")); 651 printf (" %s\n", _("Critical threshold for stratum"));
652 printf (" %s\n", "-j, --warning=THRESHOLD"); 652 printf (" %s\n", "-j, --jwarn=THRESHOLD");
653 printf (" %s\n", _("Warning threshold for jitter")); 653 printf (" %s\n", _("Warning threshold for jitter"));
654 printf (" %s\n", "-k, --critical=THRESHOLD"); 654 printf (" %s\n", "-k, --jcrit=THRESHOLD");
655 printf (" %s\n", _("Critical threshold for jitter")); 655 printf (" %s\n", _("Critical threshold for jitter"));
656 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 656 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
657 printf (_(UT_VERBOSE)); 657 printf (_(UT_VERBOSE));