summaryrefslogtreecommitdiffstats
path: root/plugins/check_overcr.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 +0000
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 +0000
commit0c3386274ef5002dffc20337ef02407f24d7400c (patch)
tree1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_overcr.c
parentde5650f28e4e43a7264913953f95a75d8afe23f0 (diff)
downloadmonitoring-plugins-0c3386274ef5002dffc20337ef02407f24d7400c.tar.gz
convert PROGANE from a define to a const char
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@238 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_overcr.c')
-rw-r--r--plugins/check_overcr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c
index 305a8242..2ff37a48 100644
--- a/plugins/check_overcr.c
+++ b/plugins/check_overcr.c
@@ -58,7 +58,7 @@
58 58
59#define PORT 2000 59#define PORT 2000
60 60
61#define PROGNAME "check_overcr" 61const char *progname = "check_overcr";
62 62
63char *server_address = NULL; 63char *server_address = NULL;
64int server_port = PORT; 64int server_port = PORT;
@@ -367,14 +367,14 @@ process_arguments (int argc, char **argv)
367 367
368 switch (c) { 368 switch (c) {
369 case '?': /* print short usage statement if args not parsable */ 369 case '?': /* print short usage statement if args not parsable */
370 printf ("%s: Unknown argument: %s\n\n", my_basename (argv[0]), optarg); 370 printf ("%s: Unknown argument: %s\n\n", progname, optarg);
371 print_usage (); 371 print_usage ();
372 exit (STATE_UNKNOWN); 372 exit (STATE_UNKNOWN);
373 case 'h': /* help */ 373 case 'h': /* help */
374 print_help (); 374 print_help ();
375 exit (STATE_OK); 375 exit (STATE_OK);
376 case 'V': /* version */ 376 case 'V': /* version */
377 print_revision (my_basename (argv[0]), "$Revision$"); 377 print_revision (progname, "$Revision$");
378 exit (STATE_OK); 378 exit (STATE_OK);
379 case 'H': /* hostname */ 379 case 'H': /* hostname */
380 server_address = optarg; 380 server_address = optarg;
@@ -385,7 +385,7 @@ process_arguments (int argc, char **argv)
385 else 385 else
386 terminate (STATE_UNKNOWN, 386 terminate (STATE_UNKNOWN,
387 "Server port an integer (seconds)\nType '%s -h' for additional help\n", 387 "Server port an integer (seconds)\nType '%s -h' for additional help\n",
388 PROGNAME); 388 progname);
389 break; 389 break;
390 case 'v': /* variable */ 390 case 'v': /* variable */
391 if (strcmp (optarg, "LOAD1") == 0) 391 if (strcmp (optarg, "LOAD1") == 0)
@@ -438,7 +438,7 @@ print_usage (void)
438{ 438{
439 printf 439 printf
440 ("Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical] [-t timeout]\n", 440 ("Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical] [-t timeout]\n",
441 PROGNAME); 441 progname);
442} 442}
443 443
444 444
@@ -448,7 +448,7 @@ print_usage (void)
448void 448void
449print_help (void) 449print_help (void)
450{ 450{
451 print_revision (PROGNAME, "$Revision$"); 451 print_revision (progname, "$Revision$");
452 printf 452 printf
453 ("Copyright (c) 2000 Ethan Galstad/Karl DeBisschop\n\n" 453 ("Copyright (c) 2000 Ethan Galstad/Karl DeBisschop\n\n"
454 "This plugin attempts to contact the Over-CR collector daemon running on the\n" 454 "This plugin attempts to contact the Over-CR collector daemon running on the\n"