[Nagiosplug-checkins] nagiosplug/plugins check_dns.c, 1.51, 1.52 check_dummy.c, 1.15, 1.16 check_fping.c, 1.25, 1.26 check_game.c, 1.26, 1.27

Benoit Mortier opensides at users.sourceforge.net
Wed Jun 14 23:27:40 CEST 2006


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

Modified Files:
	check_dns.c check_dummy.c check_fping.c check_game.c 
Log Message:

updating the help and usage for localization



Index: check_dummy.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dummy.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- check_dummy.c	14 Nov 2005 00:51:44 -0000	1.15
+++ check_dummy.c	14 Jun 2006 21:27:38 -0000	1.16
@@ -90,11 +90,9 @@
   printf ("Copyright (c) 1999 Ethan Galstad <nagios at nagios.org>\n");
   printf (COPYRIGHT, copyright, email);
 
-  printf (_("This plugin will simply return the state corresponding to the numeric value"));
- 
-  printf ("\n");
+  printf ("%s\n", _("This plugin will simply return the state corresponding to the numeric value"));
  
-  printf (_("of the <state> argument with optional text"));
+  printf ("%s\n", _("of the <state> argument with optional text"));
 
   printf ("\n\n");
   

Index: check_game.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_game.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- check_game.c	14 Nov 2005 00:51:44 -0000	1.26
+++ check_game.c	14 Jun 2006 21:27:38 -0000	1.27
@@ -282,37 +282,30 @@
 
   printf (_("This plugin tests game server connections with the specified host."));
 
- printf ("\n\n");
+  printf ("\n\n");
  
   print_usage ();
 
   printf (_(UT_HELP_VRSN));
-
-  printf (_("\
-<game>        = Game type that is recognised by qstat (without the leading dash)\n\
-<ip_address>  = The IP address of the device you wish to query\n\
- [port]        = Optional port of which to connect\n\
- [game_field]  = Field number in raw qstat output that contains game name\n\
- [map_field]   = Field number in raw qstat output that contains map name\n\
- [ping_field]  = Field number in raw qstat output that contains ping time\n"));
+  
+  printf (" %s\n", "-p");
+  printf ("    %s\n", _("Optional port of which to connect"));
+  printf (" %s\n", "gf");
+  printf ("    %s\n", _("Field number in raw qstat output that contains game name"));
+  printf (" %s\n", "-mf");
+  printf ("    %s\n", _("Field number in raw qstat output that contains map name"));
+  printf (" %s\n", "-pf");
+  printf ("    %s\n", _("Field number in raw qstat output that contains ping time"));
 
   printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
 
-  printf (_("Notes:"));
-  
-  printf ("\n");
-
-  printf (_("This plugin uses the 'qstat' command, the popular game server status query tool ."));
-  
-  printf ("\n");
+  printf ("%s\n", _("Notes:"));
 
-  printf (_("If you don't have the package installed, you will need to download it from"));
-  
-  printf ("\n");
+  printf ("%s\n", _("This plugin uses the 'qstat' command, the popular game server status query tool ."));
 
-  printf (_("http://www.activesw.com/people/steve/qstat.html before you can use this plugin."));
+  printf ("%s\n", _("If you don't have the package installed, you will need to download it from"));
 
-  printf ("\n");
+  printf ("%s\n", _("http://www.activesw.com/people/steve/qstat.html before you can use this plugin."));
 
   printf (_(UT_SUPPORT));
 }

Index: check_dns.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dns.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- check_dns.c	22 Mar 2006 16:45:56 -0000	1.51
+++ check_dns.c	14 Jun 2006 21:27:38 -0000	1.52
@@ -398,15 +398,16 @@
   printf ("Copyright (c) 1999 Ethan Galstad <nagios at nagios.org>\n");
   printf (COPYRIGHT, copyright, email);
 
-  printf (_("This plugin uses the nslookup program to obtain the IP address for the given host/domain query."));
-  printf ("\n");
-  printf (_("An optional DNS server to use may be specified."));
-  printf ("\n");
-  printf (_("If no DNS server is specified, the default server(s) specified in /etc/resolv.conf will be used."));
+  printf ("%s\n", _("This plugin uses the nslookup program to obtain the IP address for the given host/domain query."));
+  printf ("%s\n", _("An optional DNS server to use may be specified."));
+  printf ("%s\n", _("If no DNS server is specified, the default server(s) specified in /etc/resolv.conf will be used."));
+  
   printf ("\n\n");
 
   print_usage ();
+  
   printf (_(UT_HELP_VRSN));
+  
   printf (" -H, --hostname=HOST\n");
   printf ("    %s\n", _("The name or address you want to query"));
   printf (" -s, --server=HOST\n");
@@ -429,6 +430,5 @@
 print_usage (void)
 {
   printf (_("Usage:"));
-  
   printf ("%s -H host [-s server] [-a expected-address] [-A] [-t timeout] [-w warn] [-c crit]\n", progname);
 }

Index: check_fping.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_fping.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- check_fping.c	14 Nov 2005 00:51:44 -0000	1.25
+++ check_fping.c	14 Jun 2006 21:27:38 -0000	1.26
@@ -356,11 +356,9 @@
   printf ("Copyright (c) 1999 Didi Rieder <adrieder at sbox.tu-graz.ac.at>\n");
   printf (COPYRIGHT, copyright, email);
 
-  printf (_("This plugin will use the fping command to ping the specified host for a fast check"));
-  
-  printf ("\n");
+  printf ("%s\n", _("This plugin will use the fping command to ping the specified host for a fast check"));
   
-  printf (_("Note that it is necessary to set the suid flag on fping."));
+  printf ("%s\n", _("Note that it is necessary to set the suid flag on fping."));
 
   printf ("\n\n");
   
@@ -368,58 +366,21 @@
 
   printf (_(UT_HELP_VRSN));
 
-  printf ("  -H, --hostname=HOST");
-  
-  printf (_("name or IP Address of host to ping (IP Address bypasses name lookup, reducing system load)"));
-  
-  printf ("\n");
-  
-  printf ("-w, --warning=THRESHOLD");
-  
-  printf ("\n");
-  
-  printf (_("warning threshold pair"));
-  
-  printf ("\n");
-
-  printf ("  -c, --critical=THRESHOLD");
-  
-  printf ("\n");
-
-  printf (_("critical threshold pair"));
-  
-  printf ("\n");
-
-  printf ("  -b, --bytes=INTEGER");
-  
-  printf (_("size of ICMP packet (default: %d)"),PACKET_SIZE);
-  
-  printf ("\n");
-
-  printf ("  -n, --number=INTEGER");
-  
-  printf ("\n");
-
-  printf (_("number of ICMP packets to send (default: %d)"),PACKET_COUNT);
-
-  printf ("\n");
-
+  printf (" %s\n", "-H, --hostname=HOST");
+  printf ("    %s\n", _("name or IP Address of host to ping (IP Address bypasses name lookup, reducing system load)"));
+  printf (" %s\n", "-w, --warning=THRESHOLD");
+  printf ("    %s\n", _("warning threshold pair"));
+  printf (" %s\n", "-c, --critical=THRESHOLD");
+  printf ("    %s\n", _("critical threshold pair"));
+  printf (" %s\n", "-b, --bytes=INTEGER");
+  printf ("    %s\n", _("size of ICMP packet (default: %d)"),PACKET_SIZE);
+  printf (" %s\n", "-n, --number=INTEGER");
+  printf ("    %s\n", _("number of ICMP packets to send (default: %d)"),PACKET_COUNT);
   printf (_(UT_VERBOSE));
-
   printf ("\n");
-
-  printf (_("THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel time (ms)"));
-  
-  printf ("\n");
-
-  printf (_("which triggers a WARNING or CRITICAL state, and <pl> is the percentage of"));
-  
-  printf ("\n");
-
-  printf (_("packet loss to trigger an alarm state."));
-
-  printf ("\n");
-  
+  printf ("    %s\n", _("THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel time (ms)"));
+  printf ("    %s\n", _("which triggers a WARNING or CRITICAL state, and <pl> is the percentage of"));
+  printf ("    %s\n", _("packet loss to trigger an alarm state."));
   printf (_(UT_SUPPORT));
 }
 
@@ -428,5 +389,5 @@
 print_usage (void)
 {
   printf (_("Usage:"));
-  printf (" %s <host_address>\n", progname);
+  printf (" %s <host_address> -w limit -c limit [-b size] [-n number]\n", progname);
 }





More information about the Commits mailing list