diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_ntp.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index 90cf2bb..013c24b 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c | |||
@@ -47,7 +47,6 @@ const char *email = "nagiosplug-devel@lists.sourceforge.net"; | |||
47 | 47 | ||
48 | static char *server_address=NULL; | 48 | static char *server_address=NULL; |
49 | static int verbose=0; | 49 | static int verbose=0; |
50 | static int zero_offset_bad=0; | ||
51 | static double owarn=60; | 50 | static double owarn=60; |
52 | static double ocrit=120; | 51 | static double ocrit=120; |
53 | static short do_jitter=0; | 52 | static short do_jitter=0; |
@@ -628,7 +627,6 @@ int process_arguments(int argc, char **argv){ | |||
628 | {"use-ipv6", no_argument, 0, '6'}, | 627 | {"use-ipv6", no_argument, 0, '6'}, |
629 | {"warning", required_argument, 0, 'w'}, | 628 | {"warning", required_argument, 0, 'w'}, |
630 | {"critical", required_argument, 0, 'c'}, | 629 | {"critical", required_argument, 0, 'c'}, |
631 | {"zero-offset", no_argument, 0, 'O'}, | ||
632 | {"jwarn", required_argument, 0, 'j'}, | 630 | {"jwarn", required_argument, 0, 'j'}, |
633 | {"jcrit", required_argument, 0, 'k'}, | 631 | {"jcrit", required_argument, 0, 'k'}, |
634 | {"timeout", required_argument, 0, 't'}, | 632 | {"timeout", required_argument, 0, 't'}, |
@@ -641,7 +639,7 @@ int process_arguments(int argc, char **argv){ | |||
641 | usage ("\n"); | 639 | usage ("\n"); |
642 | 640 | ||
643 | while (1) { | 641 | while (1) { |
644 | c = getopt_long (argc, argv, "Vhv46w:c:Oj:k:t:H:", longopts, &option); | 642 | c = getopt_long (argc, argv, "Vhv46w:c:j:k:t:H:", longopts, &option); |
645 | if (c == -1 || c == EOF || c == 1) | 643 | if (c == -1 || c == EOF || c == 1) |
646 | break; | 644 | break; |
647 | 645 | ||
@@ -679,9 +677,6 @@ int process_arguments(int argc, char **argv){ | |||
679 | case 't': | 677 | case 't': |
680 | socket_timeout=atoi(optarg); | 678 | socket_timeout=atoi(optarg); |
681 | break; | 679 | break; |
682 | case 'O': | ||
683 | zero_offset_bad=1; | ||
684 | break; | ||
685 | case '4': | 680 | case '4': |
686 | address_family = AF_INET; | 681 | address_family = AF_INET; |
687 | break; | 682 | break; |
@@ -816,5 +811,5 @@ void | |||
816 | print_usage(void) | 811 | print_usage(void) |
817 | { | 812 | { |
818 | printf (_("Usage:")); | 813 | printf (_("Usage:")); |
819 | printf("%s -H <host> [-O] [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]\n", progname); | 814 | printf("%s -H <host> [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]\n", progname); |
820 | } | 815 | } |