diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index 1daf5401286b45f19d1f0139280272d8f2941995..b567fe10c8e83f91ae26c50ed9ae717754e55dc3 100644 (file)
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
int procrss = 0;
float procpcpu = 0;
char procstat[8];
+ char procetime[MAX_INPUT_BUFFER];
char procprog[MAX_INPUT_BUFFER];
char *procargs;
int pos, cols;
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- if (process_arguments (argc, argv) != TRUE)
+ if (process_arguments (argc, argv) == ERROR)
usage4 (_("Could not parse arguments"));
/* Set signal handling and alarm timeout */
machine. The plugin will check to make sure the Nagios status log is no older\n\
than the number of minutes specified by the <expire_minutes> option. It also\n\
uses the /bin/ps command to check for a process matching whatever you specify\n\
-by the <process_string> argument.\n"));
+by the <process_string> argument.\n\n"));
print_usage ();
void
print_usage (void)
{
- printf (_("\
-Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n"),
- progname);
+ printf ("\
+Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname);
}