diff --git a/plugins/check_dummy.c b/plugins/check_dummy.c
index 6864d02d39ca3dee36a0d0032a7fe4da74c6aa26..2dbbaec843b0bc38ee1f8110338ea6f71bf815b0 100644 (file)
--- a/plugins/check_dummy.c
+++ b/plugins/check_dummy.c
textdomain (PACKAGE);
if (argc < 2)
textdomain (PACKAGE);
if (argc < 2)
- usage (_("Incorrect number of arguments supplied\n"));
+ usage4 (_("Could not parse arguments"));
else if (strcmp (argv[1], "-V") == 0 || strcmp (argv[1], "--version") == 0) {
print_revision (progname, revision);
exit (STATE_OK);
else if (strcmp (argv[1], "-V") == 0 || strcmp (argv[1], "--version") == 0) {
print_revision (progname, revision);
exit (STATE_OK);
exit (STATE_OK);
}
else if (!is_integer (argv[1]))
exit (STATE_OK);
}
else if (!is_integer (argv[1]))
- usage (_("Arguments to check_dummy must be an integer\n"));
+ usage4 (_("Arguments to check_dummy must be an integer"));
else
result = atoi (argv[1]);
else
result = atoi (argv[1]);
printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
printf (COPYRIGHT, copyright, email);
printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
printf (COPYRIGHT, copyright, email);
+ printf (_("\
+This plugin will simply return the state corresponding to the numeric value\n\
+of the <state> argument with optional text.\n\n"));
+
print_usage ();
printf (_(UT_HELP_VRSN));
print_usage ();
printf (_(UT_HELP_VRSN));
- printf (_("\n\
-This plugin will simply return the state corresponding to the numeric value\n\
-of the <state> argument with optional text.\n"));
-
printf (_(UT_SUPPORT));
}
printf (_(UT_SUPPORT));
}
void
print_usage (void)
{
void
print_usage (void)
{
- printf (_("Usage: %s <integer state> [optional text]\n"), progname);
+ printf ("Usage: %s <integer state> [optional text]\n", progname);
}
}