summaryrefslogtreecommitdiffstats
path: root/web/attachments/263786-30_fix_check_ntp_options.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/263786-30_fix_check_ntp_options.dpatch')
-rw-r--r--web/attachments/263786-30_fix_check_ntp_options.dpatch27
1 files changed, 27 insertions, 0 deletions
diff --git a/web/attachments/263786-30_fix_check_ntp_options.dpatch b/web/attachments/263786-30_fix_check_ntp_options.dpatch
new file mode 100644
index 0000000..2a1c2d6
--- /dev/null
+++ b/web/attachments/263786-30_fix_check_ntp_options.dpatch
@@ -0,0 +1,27 @@
1## 30_fix_check_ntp_options.dpatch by Jan Wagner <waja@cyconet.org>
2##
3## All lines beginning with `## DP:' are a description of the patch.
4## DP: Fix options for check_ntp_time and check_ntp_peer
5
6--- nagios-plugins-1.4.11/plugins/check_ntp_time.c.orig 2008-01-26 00:03:57.486086968 +0100
7+++ nagios-plugins-1.4.11/plugins/check_ntp_time.c 2008-01-26 00:04:26.652580066 +0100
8@@ -631,7 +631,6 @@
9 print_usage(void)
10 {
11 printf (_("Usage:"));
12- printf(" %s -H <host> [-w <warn>] [-c <crit>] [-W <warn>] [-C <crit>]\n", progname);
13- printf(" [-j <warn>] [-k <crit>] [-v verbose]\n");
14+ printf(" %s -H <host> [-w <warn>] [-c <crit>] [-v verbose]\n", progname);
15 }
16
17--- nagios-plugins-1.4.11/plugins/check_ntp_peer.c.orig 2008-01-26 00:08:50.393996604 +0100
18+++ nagios-plugins-1.4.11/plugins/check_ntp_peer.c 2008-01-26 00:09:36.762190836 +0100
19@@ -642,7 +642,7 @@
20 printf (" %s\n", _("Offset to result in critical status (seconds)"));
21 printf (" %s\n", "-W, --warning=THRESHOLD");
22 printf (" %s\n", _("Warning threshold for stratum"));
23- printf (" %s\n", "-W, --critical=THRESHOLD");
24+ printf (" %s\n", "-C, --critical=THRESHOLD");
25 printf (" %s\n", _("Critical threshold for stratum"));
26 printf (" %s\n", "-j, --warning=THRESHOLD");
27 printf (" %s\n", _("Warning threshold for jitter"));