diff options
Diffstat (limited to 'plugins/check_hpjd.c')
| -rw-r--r-- | plugins/check_hpjd.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c index 7c56e5dc..7ad950a4 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c | |||
| @@ -17,6 +17,11 @@ | |||
| 17 | * $Id$ | 17 | * $Id$ |
| 18 | *****************************************************************************/ | 18 | *****************************************************************************/ |
| 19 | 19 | ||
| 20 | const char *progname = "check_hpjd"; | ||
| 21 | const char *revision = "$Revision$"; | ||
| 22 | const char *copyright = "2000-2004"; | ||
| 23 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | ||
| 24 | |||
| 20 | #include "common.h" | 25 | #include "common.h" |
| 21 | #include "popen.h" | 26 | #include "popen.h" |
| 22 | #include "utils.h" | 27 | #include "utils.h" |
| @@ -24,10 +29,6 @@ | |||
| 24 | 29 | ||
| 25 | #define DEFAULT_COMMUNITY "public" | 30 | #define DEFAULT_COMMUNITY "public" |
| 26 | 31 | ||
| 27 | const char *progname = "check_hpjd"; | ||
| 28 | const char *revision = "$Revision$"; | ||
| 29 | const char *copyright = "2000-2003"; | ||
| 30 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | ||
| 31 | 32 | ||
| 32 | const char *option_summary = "-H host [-C community]\n"; | 33 | const char *option_summary = "-H host [-C community]\n"; |
| 33 | 34 | ||
| @@ -59,7 +60,7 @@ int | |||
| 59 | main (int argc, char **argv) | 60 | main (int argc, char **argv) |
| 60 | { | 61 | { |
| 61 | char command_line[1024]; | 62 | char command_line[1024]; |
| 62 | int result; | 63 | int result = STATE_UNKNOWN; |
| 63 | int line; | 64 | int line; |
| 64 | char input_buffer[MAX_INPUT_BUFFER]; | 65 | char input_buffer[MAX_INPUT_BUFFER]; |
| 65 | char query_string[512]; | 66 | char query_string[512]; |
| @@ -85,7 +86,7 @@ main (int argc, char **argv) | |||
| 85 | textdomain (PACKAGE); | 86 | textdomain (PACKAGE); |
| 86 | 87 | ||
| 87 | if (process_arguments (argc, argv) != TRUE) | 88 | if (process_arguments (argc, argv) != TRUE) |
| 88 | usage4 (_("Could not parse arguments\n")); | 89 | usage4 (_("Could not parse arguments")); |
| 89 | 90 | ||
| 90 | /* removed ' 2>1' at end of command 10/27/1999 - EG */ | 91 | /* removed ' 2>1' at end of command 10/27/1999 - EG */ |
| 91 | /* create the query string */ | 92 | /* create the query string */ |
