summaryrefslogtreecommitdiffstats
path: root/plugins/check_procs.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r--plugins/check_procs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 967b4de7..3849c776 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -34,7 +34,7 @@
34* 34*
35******************************************************************************/ 35******************************************************************************/
36 36
37#define PROGNAME "check_snmp" 37const char *progname = "check_snmp";
38#define REVISION "$Revision$" 38#define REVISION "$Revision$"
39#define COPYRIGHT "1999-2002" 39#define COPYRIGHT "1999-2002"
40#define AUTHOR "Ethan Galstad" 40#define AUTHOR "Ethan Galstad"
@@ -298,12 +298,12 @@ process_arguments (int argc, char **argv)
298 print_help (); 298 print_help ();
299 exit (STATE_OK); 299 exit (STATE_OK);
300 case 'V': /* version */ 300 case 'V': /* version */
301 print_revision (PROGNAME, REVISION); 301 print_revision (progname, REVISION);
302 exit (STATE_OK); 302 exit (STATE_OK);
303 case 't': /* timeout period */ 303 case 't': /* timeout period */
304 if (!is_integer (optarg)) { 304 if (!is_integer (optarg)) {
305 printf ("%s: Timeout Interval must be an integer!\n\n", 305 printf ("%s: Timeout Interval must be an integer!\n\n",
306 my_basename (argv[0])); 306 progname);
307 print_usage (); 307 print_usage ();
308 exit (STATE_UNKNOWN); 308 exit (STATE_UNKNOWN);
309 } 309 }
@@ -325,7 +325,7 @@ process_arguments (int argc, char **argv)
325 } 325 }
326 else { 326 else {
327 printf ("%s: Critical Process Count must be an integer!\n\n", 327 printf ("%s: Critical Process Count must be an integer!\n\n",
328 my_basename (argv[0])); 328 progname);
329 print_usage (); 329 print_usage ();
330 exit (STATE_UNKNOWN); 330 exit (STATE_UNKNOWN);
331 } 331 }
@@ -345,7 +345,7 @@ process_arguments (int argc, char **argv)
345 } 345 }
346 else { 346 else {
347 printf ("%s: Warning Process Count must be an integer!\n\n", 347 printf ("%s: Warning Process Count must be an integer!\n\n",
348 my_basename (argv[0])); 348 progname);
349 print_usage (); 349 print_usage ();
350 exit (STATE_UNKNOWN); 350 exit (STATE_UNKNOWN);
351 } 351 }
@@ -356,7 +356,7 @@ process_arguments (int argc, char **argv)
356 break; 356 break;
357 } 357 }
358 printf ("%s: Parent Process ID must be an integer!\n\n", 358 printf ("%s: Parent Process ID must be an integer!\n\n",
359 my_basename (argv[0])); 359 progname);
360 print_usage (); 360 print_usage ();
361 exit (STATE_UNKNOWN); 361 exit (STATE_UNKNOWN);
362 case 's': /* status */ 362 case 's': /* status */
@@ -462,7 +462,7 @@ if (wmax >= 0 && wmin == -1)
462void 462void
463print_help (void) 463print_help (void)
464{ 464{
465 print_revision (PROGNAME, REVISION); 465 print_revision (progname, REVISION);
466 printf 466 printf
467 ("Copyright (c) %s %s <%s>\n\n%s\n", 467 ("Copyright (c) %s %s <%s>\n\n%s\n",
468 COPYRIGHT, AUTHOR, EMAIL, SUMMARY); 468 COPYRIGHT, AUTHOR, EMAIL, SUMMARY);