summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4bdb362)
raw | patch | inline | side by side (parent: 4bdb362)
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Sat, 8 Nov 2008 16:33:15 +0000 (16:33 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Sat, 8 Nov 2008 16:33:15 +0000 (16:33 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2078 f882894a-f735-0410-b71e-b25c423dba1c
index 670e47665cabbc6ebeae747ca8819e6ba66071f1..7e8cc7c9767b3a67da4c1babfa3d7288193212f3 100644 (file)
--- a/NEWS
+++ b/NEWS
Extra-opts (C plugins) does not allow trailing comments anymore (like N::P)
Fixed dependency issue on libtap when ./configure --enable-libtap used. Warning: will install libtap
Fixed segfault in extra-opts under some circumstance when reading multiple sections
- Fix long options parsing in check_tcp
+ Fix long options parsing in check_disk, check_dns, check_mrtg, check_mrtgtraf and check_tcp.
check_icmp now reports min and max round trip time perfdata (Steve Rader)
Fixed bug where additional headers with redirection caused a segfault (Dieter Van de Walle - 2089159)
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 7f5c00963116b7942ccb88ce191dac694a785b1e..2f8afa6c90e62bc0d982330611020d620ca9112e 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
{"iwarning", required_argument, 0, 'W'},
/* Dang, -C is taken. We might want to reshuffle this. */
{"icritical", required_argument, 0, 'K'},
- {"kilobytes", required_argument, 0, 'k'},
- {"megabytes", required_argument, 0, 'm'},
+ {"kilobytes", no_argument, 0, 'k'},
+ {"megabytes", no_argument, 0, 'm'},
{"units", required_argument, 0, 'u'},
{"path", required_argument, 0, 'p'},
{"partition", required_argument, 0, 'p'},
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index c2d899fdc209a00694dd59c258e2fd57cf8c4812..19206c2c65edaa305eacf5e38424df0023859126 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
{"reverse-server", required_argument, 0, 'r'},
{"expected-address", required_argument, 0, 'a'},
{"expect-authority", no_argument, 0, 'A'},
- {"warning", no_argument, 0, 'w'},
- {"critical", no_argument, 0, 'c'},
+ {"warning", required_argument, 0, 'w'},
+ {"critical", required_argument, 0, 'c'},
{0, 0, 0, 0}
};
index 02f07c012d3140dab0395b6129559d65ec114cc0..b0a7ef6c3648867597219a62131c87407a1ffbdb 100644 (file)
{"auto-off", no_argument, 0, '0'},
{"nagios", no_argument, 0, 'n'},
{"help", no_argument, 0, 'h'},
- {"version", no_argument, 0, 'V'}, {0, 0, 0, 0}
+ {"version", no_argument, 0, 'V'},
+ {0, 0, 0, 0}
};
setlocale (LC_ALL, "");
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c
index 80e52155d10ded2816b70d09586344e98dae17a3..62b0cf08fc744b5c67f5a7e1dfbb347ec7a63114 100644 (file)
--- a/plugins/check_mrtg.c
+++ b/plugins/check_mrtg.c
{"warning", required_argument, 0, 'w'},
{"label", required_argument, 0, 'l'},
{"units", required_argument, 0, 'u'},
- {"verbose", no_argument, 0, 'v'},
+ {"variable", required_argument, 0, 'v'},
{"version", no_argument, 0, 'V'},
{"help", no_argument, 0, 'h'},
{0, 0, 0, 0}
printf (" %s\n", "-F, --logfile=FILE");
printf (" %s\n", _("The MRTG log file containing the data you want to monitor"));
- printf ("-e, --expires=MINUTES");
+ printf (" %s\n", "-e, --expires=MINUTES");
printf (" %s\n", _("Minutes before MRTG data is considered to be too old"));
printf (" %s\n", "-a, --aggregation=AVG|MAX");
printf (" %s\n", _("Should we check average or maximum values?"));
index b97161649fbef0e3d686e4762b38e841af93f5fe..1911d568abdae606a5c8b1f511c8c145724a7d82 100644 (file)
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
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}
print_usage (void)
{
printf (_("Usage"));
- printf (" %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair>",progname);
- printf ("-c <critical_pair> [-e expire_minutes] [-t timeout] [-v]\n");
+ printf (" %s -F <log_file> -a <AVG | MAX> -w <warning_pair>\n",progname);
+ printf ("-c <critical_pair> [-e expire_minutes]\n");
}
index e887bca2ba15daa5e3a1abf146f5d6a034a418ac..a92b85701a56fc879c0ad3b76907ce77c8f43d6d 100644 (file)
return ERROR;
while (1) {
- c = getopt_long (argc, argv, "hvVSP:p:u:d:H:s:q:w:c:", longopts, &option);
+ c = getopt_long (argc, argv, "hvVP:p:u:d:H:s:q:w:c:", longopts, &option);
if (c == -1 || c == EOF)
break;
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index ef1b530dd3f4fc321d39a7165a22e4e437a76ebb..7d20b000d178723d786fa65254c3b9515155f952 100644 (file)
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
void print_usage(void)
{
printf (_("Usage:"));
- printf ("%s -H host -v variable [-p port] [-w warning] [-c critical]",progname);
+ printf ("%s -H host -v variable [-p port] [-w warning] [-c critical]\n",progname);
printf ("[-l params] [-d SHOWALL] [-t timeout]\n");
}