diff options
Diffstat (limited to 'plugins/check_time.c')
-rw-r--r-- | plugins/check_time.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/check_time.c b/plugins/check_time.c index dae2dd5a..63d7ee25 100644 --- a/plugins/check_time.c +++ b/plugins/check_time.c | |||
@@ -241,11 +241,11 @@ process_arguments (int argc, char **argv) | |||
241 | check_warning_time = TRUE; | 241 | check_warning_time = TRUE; |
242 | } | 242 | } |
243 | else { | 243 | else { |
244 | usage (_("Warning thresholds must be a positive integer\n")); | 244 | usage4 (_("Warning thresholds must be a positive integer")); |
245 | } | 245 | } |
246 | } | 246 | } |
247 | else { | 247 | else { |
248 | usage (_("Warning threshold must be a positive integer\n")); | 248 | usage4 (_("Warning threshold must be a positive integer")); |
249 | } | 249 | } |
250 | break; | 250 | break; |
251 | case 'c': /* critical-variance */ | 251 | case 'c': /* critical-variance */ |
@@ -260,30 +260,30 @@ process_arguments (int argc, char **argv) | |||
260 | check_critical_time = TRUE; | 260 | check_critical_time = TRUE; |
261 | } | 261 | } |
262 | else { | 262 | else { |
263 | usage (_("Critical thresholds must be a positive integer\n")); | 263 | usage4 (_("Critical thresholds must be a positive integer")); |
264 | } | 264 | } |
265 | } | 265 | } |
266 | else { | 266 | else { |
267 | usage (_("Critical threshold must be a positive integer\n")); | 267 | usage4 (_("Critical threshold must be a positive integer")); |
268 | } | 268 | } |
269 | break; | 269 | break; |
270 | case 'W': /* warning-connect */ | 270 | case 'W': /* warning-connect */ |
271 | if (!is_intnonneg (optarg)) | 271 | if (!is_intnonneg (optarg)) |
272 | usage (_("Warning threshold must be a positive integer\n")); | 272 | usage4 (_("Warning threshold must be a positive integer")); |
273 | else | 273 | else |
274 | warning_time = atoi (optarg); | 274 | warning_time = atoi (optarg); |
275 | check_warning_time = TRUE; | 275 | check_warning_time = TRUE; |
276 | break; | 276 | break; |
277 | case 'C': /* critical-connect */ | 277 | case 'C': /* critical-connect */ |
278 | if (!is_intnonneg (optarg)) | 278 | if (!is_intnonneg (optarg)) |
279 | usage (_("Critical threshold must be a positive integer\n")); | 279 | usage4 (_("Critical threshold must be a positive integer")); |
280 | else | 280 | else |
281 | critical_time = atoi (optarg); | 281 | critical_time = atoi (optarg); |
282 | check_critical_time = TRUE; | 282 | check_critical_time = TRUE; |
283 | break; | 283 | break; |
284 | case 'p': /* port */ | 284 | case 'p': /* port */ |
285 | if (!is_intnonneg (optarg)) | 285 | if (!is_intnonneg (optarg)) |
286 | usage (_("Port must be a positive integer\n")); | 286 | usage4 (_("Port must be a positive integer")); |
287 | else | 287 | else |
288 | server_port = atoi (optarg); | 288 | server_port = atoi (optarg); |
289 | break; | 289 | break; |
@@ -306,7 +306,7 @@ process_arguments (int argc, char **argv) | |||
306 | server_address = argv[c]; | 306 | server_address = argv[c]; |
307 | } | 307 | } |
308 | else { | 308 | else { |
309 | usage (_("Hostname was not supplied\n")); | 309 | usage4 (_("Hostname was not supplied")); |
310 | } | 310 | } |
311 | } | 311 | } |
312 | 312 | ||