summaryrefslogtreecommitdiffstats
path: root/plugins-root
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2006-10-20 06:24:10 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2006-10-20 06:24:10 (GMT)
commitc8664cec2bf6c108dd19d2854b69c9b65ea9ca98 (patch)
tree4726f62f5717124460178384a2632fe2a326ca55 /plugins-root
parenta99ce595ef496e9b40dbdd285c9c145b95c6182c (diff)
downloadmonitoring-plugins-c8664cec2bf6c108dd19d2854b69c9b65ea9ca98.tar.gz
localization updates
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1511 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-root')
-rw-r--r--plugins-root/check_dhcp.c43
1 files changed, 27 insertions, 16 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index 069d0c4..ce0e0cb 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -1,12 +1,20 @@
1/****************************************************************************** 1/******************************************************************************
2* 2*
3* CHECK_DHCP.C 3* Nagios check_dhcp plugin
4* 4*
5* Program: DHCP plugin for Nagios
6* License: GPL 5* License: GPL
7* Copyright (c) 2001-2004 Ethan Galstad (nagios@nagios.org) 6* Copyright (c) 2001-2004 Ethan Galstad (nagios@nagios.org)
8* Copyright (c) 2001-2006 Nagios Plugin Development Team 7* Copyright (c) 2001-2006 Nagios Plugin Development Team
9* 8*
9* Last Modified: $Date$
10*
11* Description:
12*
13* This file contains the check_dhcp plugin
14*
15* This plugin tests the availability of DHCP servers on a network.
16*
17*
10* License Information: 18* License Information:
11* 19*
12* This program is free software; you can redistribute it and/or modify 20* This program is free software; you can redistribute it and/or modify
@@ -1245,7 +1253,9 @@ void print_help(void){
1245 printf("Copyright (c) 2001-2004 Ethan Galstad (nagios@nagios.org)\n"); 1253 printf("Copyright (c) 2001-2004 Ethan Galstad (nagios@nagios.org)\n");
1246 printf (COPYRIGHT, copyright, email); 1254 printf (COPYRIGHT, copyright, email);
1247 1255
1248 printf(_("This plugin tests the availability of DHCP servers on a network.\n\n")); 1256 printf("%s\n", _("This plugin tests the availability of DHCP servers on a network."));
1257
1258 printf ("\n\n");
1249 1259
1250 print_usage(); 1260 print_usage();
1251 1261
@@ -1253,24 +1263,25 @@ void print_help(void){
1253 1263
1254 printf (_(UT_VERBOSE)); 1264 printf (_(UT_VERBOSE));
1255 1265
1256 printf(_("\ 1266 printf (" %s\n", "-s, --serverip=IPADDRESS");
1257 -s, --serverip=IPADDRESS\n\ 1267 printf (" %s\n", _("IP address of DHCP server that we must hear from"));
1258 IP address of DHCP server that we must hear from\n\ 1268 printf (" %s\n", "-r, --requestedip=IPADDRESS");
1259 -r, --requestedip=IPADDRESS\n\ 1269 printf (" %s\n", _("IP address that should be offered by at least one DHCP server"));
1260 IP address that should be offered by at least one DHCP server\n\ 1270 printf (" %s\n", "-t, --timeout=INTEGER");
1261 -t, --timeout=INTEGER\n\ 1271 printf (" %s\n", _("Seconds to wait for DHCPOFFER before timeout occurs"));
1262 Seconds to wait for DHCPOFFER before timeout occurs\n\ 1272 printf (" %s\n", "-i, --interface=STRING");
1263 -i, --interface=STRING\n\ 1273 printf (" %s\n", _("Interface to to use for listening (i.e. eth0)"));
1264 Interface to to use for listening (i.e. eth0)\n"));
1265 1274
1266 return; 1275 return;
1267 } 1276 }
1268 1277
1269 1278
1270void print_usage(void){ 1279void
1271 printf("\ 1280print_usage(void){
1272Usage: %s [-s serverip] [-r requestedip] [-t timeout] [-i interface] [-v]\n",progname); 1281
1273 1282 printf (_("Usage:"));
1283 printf ("%s [-s serverip] [-r requestedip] [-t timeout] [-i interface] [-v]\n",progname);
1284
1274 return; 1285 return;
1275 } 1286 }
1276 1287