index c6ea28433a21f8d0e9852f566b6d6e5ade8f7eae..b942461b25e621b9dca005a30b40c3e5efc6c3ab 100644 (file)
* Copyright (c) 2000 Robert Dale <rdale@digital-mission.com>
* Copyright (c) 2000-2007 Nagios Plugins Development Team
*
-* Last Modified: $Date$
-*
* Description:
*
* This file contains the check_ide_smart plugin
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
-* $Id$
*
*****************************************************************************/
const char *progname = "check_ide_smart";
-const char *revision = "$Revision$";
const char *copyright = "1998-2007";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
{"auto-off", no_argument, 0, '0'},
{"nagios", no_argument, 0, 'n'},
{"help", no_argument, 0, 'h'},
- {"version", no_argument, 0, 'V'}, {0, 0, 0, 0}
+ {"version", no_argument, 0, 'V'},
+ {0, 0, 0, 0}
};
+ /* Parse extra opts if any */
+ argv=np_extra_opts (&argc, argv, progname);
+
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
print_help ();
return STATE_OK;
case 'V':
- print_revision (progname, revision);
+ print_revision (progname, NP_VERSION);
return STATE_OK;
default:
usage5 ();
void
print_help (void)
{
- print_revision (progname, revision);
+ print_revision (progname, NP_VERSION);
printf ("Nagios feature - 1999 Robert Dale <rdale@digital-mission.com>\n");
printf ("(C) 1999 Ragnar Hojland Espinosa <ragnar@lightside.dhis.org>\n");
printf (COPYRIGHT, copyright, email);
printf (_("This plugin checks a local hard drive with the (Linux specific) SMART interface [http://smartlinux.sourceforge.net/smart/index.php]."));
-
+
printf ("\n\n");
-
+
print_usage ();
- printf (_(UT_HELP_VRSN));
-
+ printf (UT_HELP_VRSN);
+ printf (UT_EXTRA_OPTS);
+
printf (" %s\n", "-d, --device=DEVICE");
printf (" %s\n", _("Select device DEVICE"));
printf (" %s\n", _("Note: if the device is selected with this option, _no_ other options are accepted"));
printf (" %s\n", "-0, --auto-off");
printf (" %s\n", _("Turn off automatic offline tests"));
printf (" %s\n", "-n, --nagios");
- printf (" %s\n\n", _("Output suitable for Nagios"));
- printf (_(UT_SUPPORT));
+ printf (" %s\n", _("Output suitable for Nagios"));
+
+ printf (UT_SUPPORT);
}
/* todo : add to the long nanual as example
void
print_usage (void)
{
- printf (_("Usage:"));
+ printf ("%s\n", _("Usage:"));
printf ("%s [-d <device>] [-i <immediate>] [-q quiet] [-1 <auto-on>]",progname);
printf (" [-O <auto-off>] [-n <nagios>]\n");
}