diff options
Diffstat (limited to 'plugins/check_udp.c')
| -rw-r--r-- | plugins/check_udp.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/check_udp.c b/plugins/check_udp.c index b79f31f7..e7d5280c 100644 --- a/plugins/check_udp.c +++ b/plugins/check_udp.c | |||
| @@ -67,7 +67,7 @@ main (int argc, char **argv) | |||
| 67 | time (&end_time); | 67 | time (&end_time); |
| 68 | 68 | ||
| 69 | if (result != STATE_OK) { | 69 | if (result != STATE_OK) { |
| 70 | printf ("No response from host on port %d\n", server_port); | 70 | printf (_("No response from host on port %d\n"), server_port); |
| 71 | result = STATE_CRITICAL; | 71 | result = STATE_CRITICAL; |
| 72 | } | 72 | } |
| 73 | 73 | ||
| @@ -76,7 +76,7 @@ main (int argc, char **argv) | |||
| 76 | /* check to see if we got the response we wanted */ | 76 | /* check to see if we got the response we wanted */ |
| 77 | if (server_expect) { | 77 | if (server_expect) { |
| 78 | if (!strstr (recv_buffer, server_expect)) { | 78 | if (!strstr (recv_buffer, server_expect)) { |
| 79 | printf ("Invalid response received from host on port %d\n", | 79 | printf (_("Invalid response received from host on port %d\n"), |
| 80 | server_port); | 80 | server_port); |
| 81 | result = STATE_CRITICAL; | 81 | result = STATE_CRITICAL; |
| 82 | } | 82 | } |
| @@ -146,9 +146,7 @@ process_arguments (int argc, char **argv) | |||
| 146 | 146 | ||
| 147 | switch (c) { | 147 | switch (c) { |
| 148 | case '?': /* print short usage statement if args not parsable */ | 148 | case '?': /* print short usage statement if args not parsable */ |
| 149 | printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); | 149 | usage2 (_("Unknown argument"), optarg); |
| 150 | print_usage (); | ||
| 151 | exit (STATE_UNKNOWN); | ||
| 152 | case 'h': /* help */ | 150 | case 'h': /* help */ |
| 153 | print_help (); | 151 | print_help (); |
| 154 | exit (STATE_OK); | 152 | exit (STATE_OK); |
| @@ -254,8 +252,6 @@ STATE_CRITICAL, other errors return STATE_UNKNOWN.\n\n")); | |||
| 254 | } | 252 | } |
| 255 | 253 | ||
| 256 | 254 | ||
| 257 | |||
| 258 | |||
| 259 | /* Original Command line: | 255 | /* Original Command line: |
| 260 | check_udp <host_address> [-p port] [-s send] [-e expect] \ | 256 | check_udp <host_address> [-p port] [-s send] [-e expect] \ |
| 261 | [-wt warn_time] [-ct crit_time] [-to to_sec] */ | 257 | [-wt warn_time] [-ct crit_time] [-to to_sec] */ |
