diff options
Diffstat (limited to 'plugins/check_mrtgtraf.c')
| -rw-r--r-- | plugins/check_mrtgtraf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c index d33ebd9c..05830026 100644 --- a/plugins/check_mrtgtraf.c +++ b/plugins/check_mrtgtraf.c | |||
| @@ -52,7 +52,7 @@ | |||
| 52 | #include "common.h" | 52 | #include "common.h" |
| 53 | #include "utils.h" | 53 | #include "utils.h" |
| 54 | 54 | ||
| 55 | #define PROGNAME "check_mrtgtraf" | 55 | const char *progname = "check_mrtgtraf"; |
| 56 | 56 | ||
| 57 | int process_arguments (int, char **); | 57 | int process_arguments (int, char **); |
| 58 | int validate_arguments (void); | 58 | int validate_arguments (void); |
| @@ -292,7 +292,7 @@ process_arguments (int argc, char **argv) | |||
| 292 | &outgoing_warning_threshold); | 292 | &outgoing_warning_threshold); |
| 293 | break; | 293 | break; |
| 294 | case 'V': /* version */ | 294 | case 'V': /* version */ |
| 295 | print_revision (PROGNAME, "$Revision$"); | 295 | print_revision (progname, "$Revision$"); |
| 296 | exit (STATE_OK); | 296 | exit (STATE_OK); |
| 297 | case 'h': /* help */ | 297 | case 'h': /* help */ |
| 298 | print_help (); | 298 | print_help (); |
| @@ -356,7 +356,7 @@ validate_arguments (void) | |||
| 356 | void | 356 | void |
| 357 | print_help (void) | 357 | print_help (void) |
| 358 | { | 358 | { |
| 359 | print_revision (PROGNAME, "$Revision$"); | 359 | print_revision (progname, "$Revision$"); |
| 360 | printf | 360 | printf |
| 361 | ("Copyright (c) 2000 Tom Shields/Karl DeBisschop\n\n" | 361 | ("Copyright (c) 2000 Tom Shields/Karl DeBisschop\n\n" |
| 362 | "This plugin tests the UPS service on the specified host.\n\n"); | 362 | "This plugin tests the UPS service on the specified host.\n\n"); |
| @@ -390,5 +390,5 @@ print_usage (void) | |||
| 390 | ("Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair> -c <critical_pair>\n" | 390 | ("Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair> -c <critical_pair>\n" |
| 391 | " [-e expire_minutes] [-t timeout] [-v]\n" | 391 | " [-e expire_minutes] [-t timeout] [-v]\n" |
| 392 | " %s --help\n" | 392 | " %s --help\n" |
| 393 | " %s --version\n", PROGNAME, PROGNAME, PROGNAME); | 393 | " %s --version\n", progname, progname, progname); |
| 394 | } | 394 | } |
