summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bec2e69)
raw | patch | inline | side by side (parent: bec2e69)
author | Holger Weiss <hweiss@users.sourceforge.net> | |
Sat, 31 Mar 2007 17:25:43 +0000 (17:25 +0000) | ||
committer | Holger Weiss <hweiss@users.sourceforge.net> | |
Sat, 31 Mar 2007 17:25:43 +0000 (17:25 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1663 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_ntp.c | patch | blob | history |
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 90cf2bb7739af2cb62efd76a464df4b5098cd58a..013c24bbbc9574d193695c75e48b4bdf124e75e1 100644 (file)
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
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;
{"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'},
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;
case 't':
socket_timeout=atoi(optarg);
break;
- case 'O':
- zero_offset_bad=1;
- break;
case '4':
address_family = AF_INET;
break;
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);
}