summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorabrist <abrist@nagios.com>2014-02-05 20:23:40 (GMT)
committerJan Wagner <waja@cyconet.org>2014-07-29 12:24:21 (GMT)
commit6f3d5825b203b75aef8d68bf0d117e7a1a4c0616 (patch)
treecc5af8e0062118c2c1e70101e98ac52220134154
parent5dcbab6b7c9c2c0f76e0bbb30acf9d218f017074 (diff)
downloadmonitoring-plugins-6f3d582.tar.gz
check_ntp_time.c - Cleaned up usage and added a note
Closes #907 Closes #1184
-rw-r--r--plugins/check_ntp_time.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c
index d6cf419..e344f8b 100644
--- a/plugins/check_ntp_time.c
+++ b/plugins/check_ntp_time.c
@@ -621,7 +621,7 @@ void print_help(void){
621 printf (" %s\n", _("Offset to result in warning status (seconds)")); 621 printf (" %s\n", _("Offset to result in warning status (seconds)"));
622 printf (" %s\n", "-c, --critical=THRESHOLD"); 622 printf (" %s\n", "-c, --critical=THRESHOLD");
623 printf (" %s\n", _("Offset to result in critical status (seconds)")); 623 printf (" %s\n", _("Offset to result in critical status (seconds)"));
624 printf (" %s\n", "-o, --time_offset="); 624 printf (" %s\n", "-o, --time_offset=INTEGER");
625 printf (" %s\n", _("Expected offset of the ntp server relative to local server (seconds)")); 625 printf (" %s\n", _("Expected offset of the ntp server relative to local server (seconds)"));
626 printf (UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); 626 printf (UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);
627 printf (UT_VERBOSE); 627 printf (UT_VERBOSE);
@@ -635,6 +635,8 @@ void print_help(void){
635 printf("%s\n", _("Notes:")); 635 printf("%s\n", _("Notes:"));
636 printf(" %s\n", _("If you'd rather want to monitor an NTP server, please use")); 636 printf(" %s\n", _("If you'd rather want to monitor an NTP server, please use"));
637 printf(" %s\n", _("check_ntp_peer.")); 637 printf(" %s\n", _("check_ntp_peer."));
638 printf(" %s\n", _("--time-offset is usefull for compensating for servers with known"));
639 printf(" %s\n", _("and expected clock skew."));
638 printf("\n"); 640 printf("\n");
639 printf(UT_THRESHOLDS_NOTES); 641 printf(UT_THRESHOLDS_NOTES);
640 642