diff options
| author | Benoit Mortier <opensides@users.sourceforge.net> | 2006-10-20 06:24:10 +0000 |
|---|---|---|
| committer | Benoit Mortier <opensides@users.sourceforge.net> | 2006-10-20 06:24:10 +0000 |
| commit | c8664cec2bf6c108dd19d2854b69c9b65ea9ca98 (patch) | |
| tree | 4726f62f5717124460178384a2632fe2a326ca55 | |
| parent | a99ce595ef496e9b40dbdd285c9c145b95c6182c (diff) | |
| download | monitoring-plugins-c8664cec2bf6c108dd19d2854b69c9b65ea9ca98.tar.gz | |
localization updates
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1511 f882894a-f735-0410-b71e-b25c423dba1c
| -rw-r--r-- | plugins-root/check_dhcp.c | 43 | ||||
| -rw-r--r-- | plugins/check_apt.c | 5 |
2 files changed, 31 insertions, 17 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index 069d0c4d..ce0e0cbf 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 | ||
| 1270 | void print_usage(void){ | 1279 | void |
| 1271 | printf("\ | 1280 | print_usage(void){ |
| 1272 | Usage: %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 | ||
diff --git a/plugins/check_apt.c b/plugins/check_apt.c index 9bc1249f..2de8e776 100644 --- a/plugins/check_apt.c +++ b/plugins/check_apt.c | |||
| @@ -411,6 +411,8 @@ print_help (void) | |||
| 411 | printf("%s\n", _("package management systems based on the apt-get(8) command")); | 411 | printf("%s\n", _("package management systems based on the apt-get(8) command")); |
| 412 | printf("%s\n", _("found in Debian GNU/Linux")); | 412 | printf("%s\n", _("found in Debian GNU/Linux")); |
| 413 | 413 | ||
| 414 | printf ("\n\n"); | ||
| 415 | |||
| 414 | print_usage(); | 416 | print_usage(); |
| 415 | 417 | ||
| 416 | printf(_(UT_HELP_VRSN)); | 418 | printf(_(UT_HELP_VRSN)); |
| @@ -462,5 +464,6 @@ print_help (void) | |||
| 462 | void | 464 | void |
| 463 | print_usage(void) | 465 | print_usage(void) |
| 464 | { | 466 | { |
| 465 | printf ("Usage: %s [[-d|-u|-U]opts] [-n] [-t timeout]\n", progname); | 467 | printf (_("Usage:")); |
| 468 | printf ("%s [[-d|-u|-U]opts] [-n] [-t timeout]\n", progname); | ||
| 466 | } | 469 | } |
