diff options
| -rw-r--r-- | plugins/check_hpjd.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c index 713b108b..6e4ddcbf 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c | |||
| @@ -41,8 +41,6 @@ const char *email = "devel@monitoring-plugins.org"; | |||
| 41 | #define DEFAULT_COMMUNITY "public" | 41 | #define DEFAULT_COMMUNITY "public" |
| 42 | #define DEFAULT_PORT "161" | 42 | #define DEFAULT_PORT "161" |
| 43 | 43 | ||
| 44 | const char *option_summary = "-H host [-C community]\n"; | ||
| 45 | |||
| 46 | #define HPJD_LINE_STATUS ".1.3.6.1.4.1.11.2.3.9.1.1.2.1" | 44 | #define HPJD_LINE_STATUS ".1.3.6.1.4.1.11.2.3.9.1.1.2.1" |
| 47 | #define HPJD_PAPER_STATUS ".1.3.6.1.4.1.11.2.3.9.1.1.2.2" | 45 | #define HPJD_PAPER_STATUS ".1.3.6.1.4.1.11.2.3.9.1.1.2.2" |
| 48 | #define HPJD_INTERVENTION_REQUIRED ".1.3.6.1.4.1.11.2.3.9.1.1.2.3" | 46 | #define HPJD_INTERVENTION_REQUIRED ".1.3.6.1.4.1.11.2.3.9.1.1.2.3" |
| @@ -59,15 +57,15 @@ const char *option_summary = "-H host [-C community]\n"; | |||
| 59 | #define ONLINE 0 | 57 | #define ONLINE 0 |
| 60 | #define OFFLINE 1 | 58 | #define OFFLINE 1 |
| 61 | 59 | ||
| 62 | int process_arguments(int, char **); | 60 | static int process_arguments(int, char **); |
| 63 | int validate_arguments(void); | 61 | static int validate_arguments(void); |
| 64 | void print_help(void); | 62 | static void print_help(void); |
| 65 | void print_usage(void); | 63 | void print_usage(void); |
| 66 | 64 | ||
| 67 | char *community = NULL; | 65 | static char *community = NULL; |
| 68 | char *address = NULL; | 66 | static char *address = NULL; |
| 69 | unsigned int port = 0; | 67 | static unsigned int port = 0; |
| 70 | int check_paper_out = 1; | 68 | static int check_paper_out = 1; |
| 71 | 69 | ||
| 72 | int main(int argc, char **argv) { | 70 | int main(int argc, char **argv) { |
| 73 | char command_line[1024]; | 71 | char command_line[1024]; |
