diff options
Diffstat (limited to 'plugins-root/check_dhcp.c')
-rw-r--r-- | plugins-root/check_dhcp.c | 43 |
1 files changed, 27 insertions, 16 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 | ||