summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a99ce59)
raw | patch | inline | side by side (parent: a99ce59)
author | Benoit Mortier <opensides@users.sourceforge.net> | |
Fri, 20 Oct 2006 06:24:10 +0000 (06:24 +0000) | ||
committer | Benoit Mortier <opensides@users.sourceforge.net> | |
Fri, 20 Oct 2006 06:24:10 +0000 (06:24 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1511 f882894a-f735-0410-b71e-b25c423dba1c
plugins-root/check_dhcp.c | patch | blob | history | |
plugins/check_apt.c | patch | blob | history |
index 069d0c4df307e30e82de1707b7285106d478f34a..ce0e0cbfcbb6b398641ac453f839a16a13c90829 100644 (file)
/******************************************************************************
*
-* CHECK_DHCP.C
+* Nagios check_dhcp plugin
*
-* Program: DHCP plugin for Nagios
* License: GPL
* Copyright (c) 2001-2004 Ethan Galstad (nagios@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
printf("Copyright (c) 2001-2004 Ethan Galstad (nagios@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();
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;
}
diff --git a/plugins/check_apt.c b/plugins/check_apt.c
index 9bc1249f2e3ff766146f658fa6af9c75138a39ea..2de8e77637fc0994807793212e4f6c5193040a4a 100644 (file)
--- a/plugins/check_apt.c
+++ b/plugins/check_apt.c
printf("%s\n", _("package management systems based on the apt-get(8) command"));
printf("%s\n", _("found in Debian GNU/Linux"));
+ printf ("\n\n");
+
print_usage();
printf(_(UT_HELP_VRSN));
void
print_usage(void)
{
- printf ("Usage: %s [[-d|-u|-U]opts] [-n] [-t timeout]\n", progname);
+ printf (_("Usage:"));
+ printf ("%s [[-d|-u|-U]opts] [-n] [-t timeout]\n", progname);
}