From 4e366f82dee33c2f9a2e781d77144b2cf76d7c51 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Sat, 8 Nov 2008 16:33:15 +0000 Subject: Fix long options parsing in check_disk, check_dns, check_mrtg and check_mrtgtraf (check_tcp was done in an earlier commit) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2078 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_mrtgtraf.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/check_mrtgtraf.c') diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c index b9716164..1911d568 100644 --- a/plugins/check_mrtgtraf.c +++ b/plugins/check_mrtgtraf.c @@ -223,13 +223,11 @@ process_arguments (int argc, char **argv) int option = 0; static struct option longopts[] = { - {"logfile", required_argument, 0, 'F'}, + {"filename", required_argument, 0, 'F'}, {"expires", required_argument, 0, 'e'}, {"aggregation", required_argument, 0, 'a'}, - {"variable", required_argument, 0, 'v'}, {"critical", required_argument, 0, 'c'}, {"warning", required_argument, 0, 'w'}, - {"verbose", no_argument, 0, 'v'}, {"version", no_argument, 0, 'V'}, {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} @@ -385,6 +383,6 @@ void print_usage (void) { printf (_("Usage")); - printf (" %s -F -a -v -w ",progname); - printf ("-c [-e expire_minutes] [-t timeout] [-v]\n"); + printf (" %s -F -a -w \n",progname); + printf ("-c [-e expire_minutes]\n"); } -- cgit v1.2.3