[Nagiosplug-checkins] nagiosplug/plugins check_by_ssh.c,1.27,1.28 check_dig.c,1.32,1.33 check_http.c,1.70,1.71 check_nwstat.c,1.21,1.22 check_pgsql.c,1.24,1.25 check_ping.c,1.34,1.35 check_udp.c,1.18,1.19

Benoit Mortier opensides at users.sourceforge.net
Fri Dec 3 01:20:09 CET 2004


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

Modified Files:
	check_by_ssh.c check_dig.c check_http.c check_nwstat.c 
	check_pgsql.c check_ping.c check_udp.c 
Log Message:

Localization fixes



Index: check_pgsql.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_pgsql.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- check_pgsql.c	3 Dec 2004 08:45:22 -0000	1.24
+++ check_pgsql.c	3 Dec 2004 09:19:18 -0000	1.25
@@ -256,7 +256,7 @@
 			break;
 		case 'l':     /* login name */
 			if (!is_pg_logname (optarg))
-				usage2 (_("user name is not valid"), optarg);
+				usage2 (_("User name is not valid"), optarg);
 			else
 				pguser = optarg;
 			break;

Index: check_udp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_udp.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- check_udp.c	3 Dec 2004 00:55:28 -0000	1.18
+++ check_udp.c	3 Dec 2004 09:19:18 -0000	1.19
@@ -206,7 +206,7 @@
 	}
 
 	if (server_address == NULL)
-		usage (_("Host name was not supplied\n"));
+		usage4 (_("Hostname was not supplied"));
 
 	if (server_send == NULL)
 		server_send = strdup("");

Index: check_dig.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dig.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- check_dig.c	3 Dec 2004 00:55:27 -0000	1.32
+++ check_dig.c	3 Dec 2004 09:19:17 -0000	1.33
@@ -318,7 +318,7 @@
 	printf ("Copyright (c) 2000 Karl DeBisschop <kdebisschop at users.sourceforge.net>\n");
 	printf (COPYRIGHT, copyright, email);
 
-	printf (_("Test the DNS service on the specified host using dig\n\n"));
+	printf (_("Test the DNS service on the specified host using dig\n"));
 
 	print_usage ();
 

Index: check_ping.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ping.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- check_ping.c	3 Dec 2004 00:55:27 -0000	1.34
+++ check_ping.c	3 Dec 2004 09:19:18 -0000	1.35
@@ -475,7 +475,7 @@
 			warn_text = strdup (_(WARN_DUPLICATES));
 		else if (! strstr (warn_text, _(WARN_DUPLICATES)) &&
 		         asprintf (&warn_text, "%s %s", warn_text, _(WARN_DUPLICATES)) == -1)
-			die (STATE_UNKNOWN, _("unable to realloc warn_text"));
+			die (STATE_UNKNOWN, _("Unable to realloc warn_text"));
 		return (STATE_WARNING);
 	}
 

Index: check_by_ssh.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_by_ssh.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- check_by_ssh.c	3 Dec 2004 00:55:26 -0000	1.27
+++ check_by_ssh.c	3 Dec 2004 09:19:17 -0000	1.28
@@ -73,7 +73,7 @@
 
 	/* Set signal handling and alarm timeout */
 	if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) {
-		usage4 (_("	Cannot catch SIGALRM"));
+		usage4 (_("Cannot catch SIGALRM"));
 	}
 	alarm (timeout_interval);
 

Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- check_http.c	2 Dec 2004 16:51:24 -0000	1.70
+++ check_http.c	3 Dec 2004 09:19:18 -0000	1.71
@@ -346,7 +346,7 @@
 			break;
 		case 'p': /* Server port */
 			if (!is_intnonneg (optarg))
-				usage2 (_("invalid port number"), optarg);
+				usage2 (_("Invalid port number"), optarg);
 			else {
 				server_port = atoi (optarg);
 				specify_port = TRUE;
@@ -377,7 +377,7 @@
  		case 'l': /* linespan */
  		case 'r': /* linespan */
  		case 'R': /* linespan */
-			usage (_("check_http: call for regex which was not a compiled option\n"));
+			usage4 (_("Call for regex which was not a compiled option"));
 			break;
 #else
  		case 'l': /* linespan */
@@ -403,7 +403,7 @@
 #ifdef USE_IPV6
 			address_family = AF_INET6;
 #else
-			usage (_("IPv6 support not available\n"));
+			usage4 (_("IPv6 support not available"));
 #endif
 			break;
 		case 'v': /* verbose */
@@ -446,7 +446,7 @@
 
 	if (server_address == NULL) {
 		if (host_name == NULL)
-			usage (_("check_http: you must specify a server address or host name\n"));
+			usage4 (_("You must specify a server address or host name"));
 		else
 			server_address = strdup (host_name);
 	}
@@ -1049,11 +1049,11 @@
 
 	addr = malloc (MAX_IPV4_HOSTLENGTH + 1);
 	if (addr == NULL)
-		die (STATE_UNKNOWN, _("could not allocate addr\n"));
+		die (STATE_UNKNOWN, _("Could not allocate addr\n"));
 	
 	url = malloc (strcspn (pos, "\r\n"));
 	if (url == NULL)
-		die (STATE_UNKNOWN, _("could not allocate url\n"));
+		die (STATE_UNKNOWN, _("Could not allocate url\n"));
 
 	while (pos) {
 

Index: check_nwstat.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_nwstat.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- check_nwstat.c	3 Dec 2004 00:55:27 -0000	1.21
+++ check_nwstat.c	3 Dec 2004 09:19:18 -0000	1.22
@@ -643,7 +643,7 @@
 			result=STATE_CRITICAL;
 		else if (check_warning_value==TRUE && dirty_cache_buffers <= warning_value)
 			result=STATE_WARNING;
-		asprintf (&output_message,_("dirty cache buffers = %lu%% of the total"),dirty_cache_buffers);
+		asprintf (&output_message,_("Dirty cache buffers = %lu%% of the total"),dirty_cache_buffers);
 
 		/* check % total cache buffers as a percentage of the original*/
 	} else if (vars_to_check==TCB) {
@@ -658,7 +658,7 @@
 			result=STATE_CRITICAL;
 		else if (check_warning_value==TRUE && total_cache_buffers <= warning_value)
 			result=STATE_WARNING;
-		asprintf (&output_message,_("total cache buffers = %lu%% of the original"),total_cache_buffers);
+		asprintf (&output_message,_("Total cache buffers = %lu%% of the original"),total_cache_buffers);
 		
 	} else if (vars_to_check==DSVER) {
 		asprintf (&send_buffer,"S13\r\n");





More information about the Commits mailing list