[Nagiosplug-checkins] nagiosplug/plugins-root check_dhcp.c, 1.5, 1.6

Benoit Mortier opensides at users.sourceforge.net
Fri Oct 20 08:24:12 CEST 2006


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

Modified Files:
	check_dhcp.c 
Log Message:

localization updates



Index: check_dhcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-root/check_dhcp.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- check_dhcp.c	29 Jul 2006 01:43:34 -0000	1.5
+++ check_dhcp.c	20 Oct 2006 06:24:10 -0000	1.6
@@ -1,12 +1,20 @@
 /******************************************************************************
 *
-* CHECK_DHCP.C
+* Nagios check_dhcp plugin
 *
-* Program: DHCP plugin for Nagios
 * License: GPL
 * Copyright (c) 2001-2004 Ethan Galstad (nagios at nagios.org)
 * Copyright (c) 2001-2006 Nagios Plugin Development Team
 *
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_dhcp plugin
+*
+*  This plugin tests the availability of DHCP servers on a network.
+*
+*
 * License Information:
 *
 * This program is free software; you can redistribute it and/or modify
@@ -1245,7 +1253,9 @@
 	printf("Copyright (c) 2001-2004 Ethan Galstad (nagios at nagios.org)\n");
 	printf (COPYRIGHT, copyright, email);
 	
-	printf(_("This plugin tests the availability of DHCP servers on a network.\n\n"));
+	printf("%s\n", _("This plugin tests the availability of DHCP servers on a network."));
+
+  printf ("\n\n");
 
 	print_usage();
 
@@ -1253,24 +1263,25 @@
 
 	printf (_(UT_VERBOSE));
 
-	printf(_("\
- -s, --serverip=IPADDRESS\n\
-   IP address of DHCP server that we must hear from\n\
- -r, --requestedip=IPADDRESS\n\
-   IP address that should be offered by at least one DHCP server\n\
- -t, --timeout=INTEGER\n\
-   Seconds to wait for DHCPOFFER before timeout occurs\n\
- -i, --interface=STRING\n\
-   Interface to to use for listening (i.e. eth0)\n"));
+	printf (" %s\n", "-s, --serverip=IPADDRESS");
+  printf ("    %s\n", _("IP address of DHCP server that we must hear from"));
+  printf (" %s\n", "-r, --requestedip=IPADDRESS");
+  printf ("    %s\n", _("IP address that should be offered by at least one DHCP server"));
+  printf (" %s\n", "-t, --timeout=INTEGER");
+  printf ("    %s\n", _("Seconds to wait for DHCPOFFER before timeout occurs"));
+  printf (" %s\n", "-i, --interface=STRING");
+  printf ("    %s\n", _("Interface to to use for listening (i.e. eth0)"));
 
 	return;
 	}
 
 
-void print_usage(void){
-	printf("\
-Usage: %s [-s serverip] [-r requestedip] [-t timeout] [-i interface] [-v]\n",progname);
-
+void
+print_usage(void){
+	
+  printf (_("Usage:"));
+  printf ("%s [-s serverip] [-r requestedip] [-t timeout] [-i interface] [-v]\n",progname);
+  
 	return;
 	}
 





More information about the Commits mailing list