diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index 465b409dcea420c0ac35e4f696cb94bc420bea29..089ff669702a96bb0d0a2b297f3ba7a9e9fb3a2b 100644 (file)
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
char *temp_ptr;
FILE *fp;
int procuid = 0;
+ int procpid = 0;
int procppid = 0;
int procvsz = 0;
int procrss = 0;
fclose (fp);
if (verbose >= 2)
- printf("command: %s\n", PS_COMMAND);
+ printf(_("command: %s\n"), PS_COMMAND);
/* run the command to check for the Nagios process.. */
child_process = spopen (PS_COMMAND);
expire_minutes = atoi (argv[2]);
else
die (STATE_UNKNOWN,
- _("Expiration time must be an integer (seconds)\nType '%s -h' for additional help\n"),
- progname);
+ _("Expiration time must be an integer (seconds)\n"));
process_string = argv[3];
return OK;
}
switch (c) {
case '?': /* print short usage statement if args not parsable */
- printf (_("%s: Unknown argument: %c\n\n"), progname, optopt);
- print_usage ();
- exit (STATE_UNKNOWN);
+ usage2 (_("Unknown argument"), optarg);
case 'h': /* help */
print_help ();
exit (STATE_OK);
expire_minutes = atoi (optarg);
else
die (STATE_UNKNOWN,
- _("Expiration time must be an integer (seconds)\nType '%s -h' for additional help\n"),
- progname);
+ _("Expiration time must be an integer (seconds)\n"));
break;
case 'v':
verbose++;
if (status_log == NULL)
die (STATE_UNKNOWN,
- _("You must provide the status_log\nType '%s -h' for additional help\n"),
- progname);
+ _("You must provide the status_log\n"));
else if (process_string == NULL)
die (STATE_UNKNOWN,
- _("You must provide a process string\nType '%s -h' for additional help\n"),
- progname);
+ _("You must provide a process string\n"));
return OK;
}