[Nagiosplug-checkins] nagiosplug/plugins check_disk.c, 1.84, 1.85 check_http.c, 1.99, 1.100 check_ide_smart.c, 1.13, 1.14 check_mrtg.c, 1.29, 1.30 check_mrtgtraf.c, 1.26, 1.27 check_overcr.c, 1.22, 1.23 check_smtp.c, 1.56, 1.57 check_tcp.c, 1.86, 1.87

Benoit Mortier opensides at users.sourceforge.net
Tue Feb 6 22:03:23 CET 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv25282/plugins

Modified Files:
	check_disk.c check_http.c check_ide_smart.c check_mrtg.c 
	check_mrtgtraf.c check_overcr.c check_smtp.c check_tcp.c 
Log Message:

correcting some translation problems



Index: check_mrtg.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_mrtg.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- check_mrtg.c	28 Jan 2007 21:46:40 -0000	1.29
+++ check_mrtg.c	6 Feb 2007 21:03:21 -0000	1.30
@@ -367,7 +367,7 @@
   printf (" %s\n", _("  commands with different values for the <variable> argument.  Of course,"));
   printf (" %s\n", _("you can always hack the code to make this plugin work for you..."));
   printf (" %s\n", _("- MRTG stands for the Multi Router Traffic Grapher.  It can be downloaded from"));
-  printf (" %s\n", _("http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"));
+  printf (" %s\n", "http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html");
 
 	printf (_(UT_SUPPORT));
 }

Index: check_tcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_tcp.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- check_tcp.c	1 Feb 2007 06:53:11 -0000	1.86
+++ check_tcp.c	6 Feb 2007 21:03:21 -0000	1.87
@@ -342,7 +342,7 @@
 	/* this is a bit stupid, because we don't want to print the
 	 * response time (which can look ok to the user) if we didn't get
 	 * the response we were looking for. if-else */
-	printf(_("%s %s - "), SERVICE, state_text(result));
+	printf("%s %s - ", SERVICE, state_text(result));
 
 	if(match == -2 && len && !(flags & FLAG_HIDE_OUTPUT))
 		printf("Unexpected response from host/socket: %s", status);

Index: check_overcr.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_overcr.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- check_overcr.c	28 Jan 2007 21:46:40 -0000	1.22
+++ check_overcr.c	6 Feb 2007 21:03:21 -0000	1.23
@@ -451,15 +451,15 @@
   printf ("\n");
   printf ("%s\n", _("Notes:"));
   
-	printf ("%s\n", _("For the available options, the critical threshold value should always be"));
+  printf ("%s\n", _("For the available options, the critical threshold value should always be"));
   printf ("%s\n\n", _("higher than the warning threshold value, EXCEPT with the uptime variable"));
 
-	printf ("%s\n", _("This plugin requres that Eric Molitors' Over-CR collector daemon be"));
-  printf ("%s\n", _("running on the remote server. Over-CR can be downloaded from"));
-  printf ("%s\n", _("http://www.molitor.org/overcr (This plugin was tested with version 0.99.53"));
-  printf ("%s\n", _("of the Over-CR collector)"));
+  printf ("%s\n", _("This plugin requres that Eric Molitors' Over-CR collector daemon be"));
+  printf ("%s\n", _("running on the remote server."));
+  printf ("%s\n", " Over-CR can be downloaded from http://www.molitor.org/overcr");
+  printf ("%s\n", _("This plugin was tested with version 0.99.53 of the Over-CR collector"));
 
-	printf (_(UT_SUPPORT));
+  printf (_(UT_SUPPORT));
 }
 
 

Index: check_mrtgtraf.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_mrtgtraf.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- check_mrtgtraf.c	28 Jan 2007 21:46:40 -0000	1.26
+++ check_mrtgtraf.c	6 Feb 2007 21:03:21 -0000	1.27
@@ -360,7 +360,7 @@
 
 	printf ("%s\n", _("Notes:"));
   printf (" %s\n", _("- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from"));
-  printf (" %s\n", _("  http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"));
+  printf (" %s\n", "  http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html");
   printf (" %s\n", _("- While MRTG can monitor things other than traffic rates, this"));
   printf (" %s\n", _("  plugin probably won't work with much else without modification."));
   printf (" %s\n", _("- The calculated i/o rates are a little off from what MRTG actually"));

Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- check_http.c	28 Jan 2007 21:46:40 -0000	1.99
+++ check_http.c	6 Feb 2007 21:03:20 -0000	1.100
@@ -1017,7 +1017,7 @@
         msg = strdup(_("pattern not found"));
       else 
         msg = strdup(_("pattern found"));
-      printf (_("%s - %s%s|%s %s\n"),
+      printf (("%s - %s%s|%s %s\n"),
         _("CRITICAL"),
         msg,
         (display_html ? "</A>" : ""),

Index: check_disk.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_disk.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- check_disk.c	29 Jan 2007 14:14:05 -0000	1.84
+++ check_disk.c	6 Feb 2007 21:03:20 -0000	1.85
@@ -754,7 +754,7 @@
   printf ("    %s\n", _("Path or partition (may be repeated)"));
   printf (" %s\n", "-x, --exclude_device=PATH <STRING>");
   printf ("    %s\n", _("Ignore device (only works if -p unspecified)"));
-  printf (" %s\n", _("-X, --exclude-type=TYPE <STRING>"));
+  printf (" %s\n", "-X, --exclude-type=TYPE <STRING>");
   printf ("    %s\n", _("Ignore all filesystems of indicated type (may be repeated)"));
   printf (" %s\n", "-m, --mountpoint");
   printf ("    %s\n", _("Display the mountpoint instead of the partition"));

Index: check_smtp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_smtp.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- check_smtp.c	28 Jan 2007 21:46:40 -0000	1.56
+++ check_smtp.c	6 Feb 2007 21:03:21 -0000	1.57
@@ -297,14 +297,14 @@
 		 * we resent EHLO via TLS.
 		 */
 		if (my_send(helocmd, strlen(helocmd)) <= 0) {
-			printf(_("SMTP UNKNOWN - Cannot send EHLO command via TLS.\n"));
+			printf("%s\n", _("SMTP UNKNOWN - Cannot send EHLO command via TLS."));
 			my_close();
 			return STATE_UNKNOWN;
 		}
 		if (verbose)
 			printf(_("sent %s"), helocmd);
 		if ((n = my_recv(buffer, MAX_INPUT_BUFFER - 1)) <= 0) {
-			printf(_("SMTP UNKNOWN - Cannot read EHLO response via TLS.\n"));
+			printf("%s\n", _("SMTP UNKNOWN - Cannot read EHLO response via TLS."));
 			my_close();
 			return STATE_UNKNOWN;
 		}
@@ -317,7 +317,7 @@
 		  if ( check_cert ) {
 		    result = np_net_ssl_check_cert(days_till_exp);
 		    if(result != STATE_OK){
-		      printf (_("CRITICAL - Cannot retrieve server certificate.\n"));
+		      printf ("%s\n", _("CRITICAL - Cannot retrieve server certificate."));
 		    }
 		    my_close();
 		    return result;

Index: check_ide_smart.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ide_smart.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- check_ide_smart.c	28 Jan 2007 21:46:40 -0000	1.13
+++ check_ide_smart.c	6 Feb 2007 21:03:21 -0000	1.14
@@ -522,7 +522,7 @@
   printf (" %s\n", "-0, --auto-off");
   printf ("    %s\n", _("Turn off automatic offline tests"));
   printf (" %s\n", "-n, --nagios");
-  printf ("    %s\n", _("Output suitable for Nagios\n"));
+  printf ("    %s\n\n", _("Output suitable for Nagios"));
   printf (_(UT_SUPPORT));
 }
 





More information about the Commits mailing list