summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <hweiss@users.sourceforge.net>2007-03-31 17:25:43 +0000
committerHolger Weiss <hweiss@users.sourceforge.net>2007-03-31 17:25:43 +0000
commit180ce88b3fd5ce4e0694f0e79addac5a177204e1 (patch)
treeab2aa8e2689db0376d1a522c6e62801bf7e3123a
parentbec2e69113a4e83e3bacd7acc8ee62f42ee50b12 (diff)
downloadmonitoring-plugins-180ce88b3fd5ce4e0694f0e79addac5a177204e1.tar.gz
Remove the '-O' option, as it's ignored.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1663 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_ntp.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 90cf2bb7..013c24bb 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
48static char *server_address=NULL; 48static char *server_address=NULL;
49static int verbose=0; 49static int verbose=0;
50static int zero_offset_bad=0;
51static double owarn=60; 50static double owarn=60;
52static double ocrit=120; 51static double ocrit=120;
53static short do_jitter=0; 52static 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
816print_usage(void) 811print_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}