[Nagiosplug-checkins] SF.net SVN: nagiosplug:[2079] nagiosplug/trunk

dermoth at users.sourceforge.net dermoth at users.sourceforge.net
Sat Nov 8 17:33:29 CET 2008


Revision: 2079
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2079&view=rev
Author:   dermoth
Date:     2008-11-08 16:33:28 +0000 (Sat, 08 Nov 2008)

Log Message:
-----------
Add missing long options for check_nt (for use with extra-opts)

Extra-opts (ini files) requires long-options for setting up arguments. Added
the missing ones for check_nt so that it can be properly used with extra-opts.

Modified Paths:
--------------
    nagiosplug/trunk/NEWS
    nagiosplug/trunk/plugins/check_nt.c

Modified: nagiosplug/trunk/NEWS
===================================================================
--- nagiosplug/trunk/NEWS	2008-11-08 16:33:15 UTC (rev 2078)
+++ nagiosplug/trunk/NEWS	2008-11-08 16:33:28 UTC (rev 2079)
@@ -11,7 +11,8 @@
 	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_disk, check_dns, check_mrtg, check_mrtgtraf and check_tcp.
+	Fix long options parsing in check_disk, check_dns, check_mrtg, check_mrtgtraf and check_tcp
+	Add missing long options for check_nt (for use with extra-opts)
 	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)
 

Modified: nagiosplug/trunk/plugins/check_nt.c
===================================================================
--- nagiosplug/trunk/plugins/check_nt.c	2008-11-08 16:33:15 UTC (rev 2078)
+++ nagiosplug/trunk/plugins/check_nt.c	2008-11-08 16:33:28 UTC (rev 2079)
@@ -476,6 +476,9 @@
 		{"warning",  required_argument,0,'w'},
 		{"variable", required_argument,0,'v'},
 		{"hostname", required_argument,0,'H'},
+		{"params",   required_argument,0,'l'},
+		{"secret",   required_argument,0,'s'},
+		{"display",  required_argument,0,'d'},
 		{"version",  no_argument,      0,'V'},
 		{"help",     no_argument,      0,'h'},
 		{0,0,0,0}
@@ -655,7 +658,7 @@
   printf (" %s\n", "-p, --port=INTEGER");
   printf ("   %s", _("Optional port number (default: "));
   printf ("%d)\n", PORT);
-  printf (" %s\n", "-s <password>");
+  printf (" %s\n", "-s, --secret=<password>");
   printf ("   %s\n", _("Password needed for the request"));
   printf (" %s\n", "-w, --warning=INTEGER");
   printf ("   %s\n", _("Threshold which will result in a warning status"));
@@ -663,6 +666,10 @@
   printf ("   %s\n", _("Threshold which will result in a critical status"));
   printf (" %s\n", "-t, --timeout=INTEGER");
   printf ("   %s", _("Seconds before connection attempt times out (default: "));
+  printf (" %s\n", "-l, --params=<parameters>");
+  printf ("   %s", _("Parameters passed to specified check (see below)"));
+  printf (" %s\n", "-d, --display={SHOWALL}");
+  printf ("   %s", _("Display options (currently only SHOWALL works)"));
   printf ("%d)\n", DEFAULT_SOCKET_TIMEOUT);
   printf (" %s\n", "-h, --help");
   printf ("   %s\n", _("Print this help screen"));


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list