diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c
index fea87dae76df198f9b8c9e0cfe5087a6698c95f8..9bf40d3cac151b90bd075516e183dbc29168cc43 100644 (file)
--- a/plugins/check_overcr.c
+++ b/plugins/check_overcr.c
const char *progname = "check_overcr";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
int
main (int argc, char **argv)
{
- int result;
+ int result = STATE_UNKNOWN;
char recv_buffer[MAX_INPUT_BUFFER];
char temp_buffer[MAX_INPUT_BUFFER];
char *temp_ptr = NULL;
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- if (process_arguments (argc, argv) != OK)
- usage (_("check_overcr: could not parse arguments\n"));
+ if (process_arguments (argc, argv) == ERROR)
+ usage4 (_("Could not parse arguments"));
/* initialize alarm signal handling */
signal (SIGALRM, socket_timeout_alarm_handler);
-void
-print_usage (void)
-{
- printf (_("\
-Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\
- [-t timeout]\n"),
- progname);
- printf (_(UT_HLP_VRS), progname, progname);
-}
-
-
-
void
print_help (void)
{
printf (_(UT_SUPPORT));
}
+
+
+
+void
+print_usage (void)
+{
+ printf ("\
+Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\
+ [-t timeout]\n", progname);
+}