[nagiosplug] check_ntp_peer: Fix --help output for -W and -C

Nagios Plugin Development nagios-plugins at users.sourceforge.net
Mon Aug 6 21:40:30 CEST 2012


 Module: nagiosplug
 Branch: master
 Commit: 48b83c45afa32481ae36f17e1723fda5132acffa
 Author: Holger Weiss <holger at zedat.fu-berlin.de>
   Date: Mon Aug  6 20:37:43 2012 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=48b83c4

check_ntp_peer: Fix --help output for -W and -C

Mention that the check_ntp_peer plugin checks the stratum of the
synchronization peer, not the stratum of the monitored server itself.

Thanks to Marc Haber for bringing this up on the "nagios-users" mailing
list (Message-ID: <20120722142840.GA6931 at torres.zugschlus.de>).

---

 plugins/check_ntp_peer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c
index f0dd2d8..7e93e45 100644
--- a/plugins/check_ntp_peer.c
+++ b/plugins/check_ntp_peer.c
@@ -668,9 +668,9 @@ void print_help(void){
 	printf (" %s\n", "-c, --critical=THRESHOLD");
 	printf ("    %s\n", _("Offset to result in critical status (seconds)"));
 	printf (" %s\n", "-W, --swarn=THRESHOLD");
-	printf ("    %s\n", _("Warning threshold for stratum"));
+	printf ("    %s\n", _("Warning threshold for stratum of server's synchronization peer"));
 	printf (" %s\n", "-C, --scrit=THRESHOLD");
-	printf ("    %s\n", _("Critical threshold for stratum"));
+	printf ("    %s\n", _("Critical threshold for stratum of server's synchronization peer"));
 	printf (" %s\n", "-j, --jwarn=THRESHOLD");
 	printf ("    %s\n", _("Warning threshold for jitter"));
 	printf (" %s\n", "-k, --jcrit=THRESHOLD");





More information about the Commits mailing list