aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ntp.c
diff options
context:
space:
mode:
authorGravatar Holger Weiss <hweiss@users.sourceforge.net> 2007-03-31 17:25:43 +0000
committerGravatar Holger Weiss <hweiss@users.sourceforge.net> 2007-03-31 17:25:43 +0000
commit180ce88b3fd5ce4e0694f0e79addac5a177204e1 (patch)
treeab2aa8e2689db0376d1a522c6e62801bf7e3123a /plugins/check_ntp.c
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
Diffstat (limited to 'plugins/check_ntp.c')
-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";
static char *server_address=NULL;
static int verbose=0;
-static int zero_offset_bad=0;
static double owarn=60;
static double ocrit=120;
static short do_jitter=0;
@@ -628,7 +627,6 @@ int process_arguments(int argc, char **argv){
{"use-ipv6", no_argument, 0, '6'},
{"warning", required_argument, 0, 'w'},
{"critical", required_argument, 0, 'c'},
- {"zero-offset", no_argument, 0, 'O'},
{"jwarn", required_argument, 0, 'j'},
{"jcrit", required_argument, 0, 'k'},
{"timeout", required_argument, 0, 't'},
@@ -641,7 +639,7 @@ int process_arguments(int argc, char **argv){
usage ("\n");
while (1) {
- c = getopt_long (argc, argv, "Vhv46w:c:Oj:k:t:H:", longopts, &option);
+ c = getopt_long (argc, argv, "Vhv46w:c:j:k:t:H:", longopts, &option);
if (c == -1 || c == EOF || c == 1)
break;
@@ -679,9 +677,6 @@ int process_arguments(int argc, char **argv){
case 't':
socket_timeout=atoi(optarg);
break;
- case 'O':
- zero_offset_bad=1;
- break;
case '4':
address_family = AF_INET;
break;
@@ -816,5 +811,5 @@ void
print_usage(void)
{
printf (_("Usage:"));
- printf("%s -H <host> [-O] [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]\n", progname);
+ printf("%s -H <host> [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]\n", progname);
}