[Nagiosplug-checkins] nagiosplug/plugins check_cluster.c,1.3,1.4

Thomas Guyot dermoth at users.sourceforge.net
Sun Apr 15 17:17:28 CEST 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs16:/tmp/cvs-serv13133/plugins

Modified Files:
	check_cluster.c 
Log Message:
Localization and help fixes (Thanks Benoit M.)


Index: check_cluster.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_cluster.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- check_cluster.c	15 Apr 2007 09:03:42 -0000	1.3
+++ check_cluster.c	15 Apr 2007 15:17:26 -0000	1.4
@@ -29,7 +29,7 @@
 
 const char *progname = "check_cluster";
 const char *revision = "$Revision$";
-const char *copyright = "2000-2007";
+const char *copyright = "2007";
 const char *email = "nagiosplug-devel at lists.sourceforge.net";
 
 #include "common.h"
@@ -219,13 +219,15 @@
 print_help(void)
 {
 	print_revision(progname, revision);
+	printf ("Copyright (c) 2000-2004 Ethan Galstad (nagios at nagios.org)\n");
 	printf(COPYRIGHT, copyright, email);
 
-	printf("%s\n", _("Host/Service Cluster Plugin for Nagios 2"));
+	printf(_("Host/Service Cluster Plugin for Nagios 2"));
+	printf("\n\n");
 
 	print_usage();
 
-
+	printf("\n");
 	printf("%s\n", _("Options:"));
 	printf (" %s\n", "-s, --service");
 	printf ("    %s\n", _("Check service cluster status"));
@@ -248,7 +250,7 @@
 	printf("\n");
 	printf("%s\n", _("Notes:"));
 	printf(" %s\n", _("See:"));
-	printf(" %s\n", _("http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT"));
+	printf(" %s\n", ("http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT"));
 	printf(" %s\n", _("for THRESHOLD format and examples."));
 
 	printf(_(UT_SUPPORT));
@@ -260,14 +262,9 @@
 print_usage(void)
 {
 
-	printf("\n");
 	printf(_("Usage:"));
 	printf(" %s (-s | -h) -d val1[,val2,...,valn] [-l label]\n", progname);
 	printf("[-w threshold] [-c threshold] [-v] [--help]\n");
-	printf("\n");
 
 }
 
-#if 0
-#endif
-





More information about the Commits mailing list