[Nagiosplug-checkins] nagiosplug/plugins check_by_ssh.c,1.32,1.33 check_dns.c,1.41,1.42

Benoit Mortier opensides at users.sourceforge.net
Sat Dec 4 04:32:02 CET 2004


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

Modified Files:
	check_by_ssh.c check_dns.c 
Log Message:

various internationalization fixes



Index: check_by_ssh.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_by_ssh.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- check_by_ssh.c	4 Dec 2004 12:12:29 -0000	1.32
+++ check_by_ssh.c	4 Dec 2004 12:31:41 -0000	1.33
@@ -338,8 +338,8 @@
 {
 	print_revision (progname, revision);
 
-	printf (_("Copyright (c) 1999 Karl DeBisschop <kdebisschop at users.sourceforge.net>\n"));
-	printf (_(COPYRIGHT), copyright, email);
+	printf ("Copyright (c) 1999 Karl DeBisschop <kdebisschop at users.sourceforge.net>\n");
+	printf (COPYRIGHT, copyright, email);
 
 	printf (_("This plugin uses SSH to execute commands on a remote host\n\n"));
 

Index: check_dns.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dns.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- check_dns.c	4 Dec 2004 10:57:12 -0000	1.41
+++ check_dns.c	4 Dec 2004 12:31:41 -0000	1.42
@@ -324,9 +324,7 @@
 			/* TODO: this is_host check is probably unnecessary. */
 			/* Better to confirm nslookup response matches */
 			if (is_host (optarg) == FALSE) {
-				printf (_("Invalid hostname/address\n\n"));
-				print_usage ();
-				exit (STATE_UNKNOWN);
+				usage2 (_("Invalid hostname/address"), optarg);
 			}
 			if (strlen (optarg) >= ADDRESS_LENGTH)
 				die (STATE_UNKNOWN, _("Input buffer overflow\n"));





More information about the Commits mailing list