summaryrefslogtreecommitdiffstats
path: root/plugins/check_overcr.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-25 23:17:46 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-25 23:17:46 (GMT)
commite9ccc6b21a1152bbf150302c4a29a6df79d75bd7 (patch)
tree91bf1ebb6f927fd628b298df2ac5a89580282591 /plugins/check_overcr.c
parent71656b2aafffb69716620bf08cce76c925dc8fa3 (diff)
downloadmonitoring-plugins-e9ccc6b21a1152bbf150302c4a29a6df79d75bd7.tar.gz
various fixes for localization
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1061 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_overcr.c')
-rw-r--r--plugins/check_overcr.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c
index 9bf40d3..a4abf2b 100644
--- a/plugins/check_overcr.c
+++ b/plugins/check_overcr.c
@@ -272,17 +272,9 @@ main (int argc, char **argv)
272 die (STATE_UNKNOWN, _("Nothing to check!\n")); 272 die (STATE_UNKNOWN, _("Nothing to check!\n"));
273 break; 273 break;
274 } 274 }
275
276 /* reset timeout */
277/* alarm (0); */
278
279/* printf (_("Reached end of program with no data returned\n")); */
280
281/* return result; */
282} 275}
283 276
284 277
285
286/* process command-line arguments */ 278/* process command-line arguments */
287int 279int
288process_arguments (int argc, char **argv) 280process_arguments (int argc, char **argv)
@@ -332,9 +324,7 @@ process_arguments (int argc, char **argv)
332 324
333 switch (c) { 325 switch (c) {
334 case '?': /* print short usage statement if args not parsable */ 326 case '?': /* print short usage statement if args not parsable */
335 printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); 327 usage2 (_("Unknown argument"), optarg);
336 print_usage ();
337 exit (STATE_UNKNOWN);
338 case 'h': /* help */ 328 case 'h': /* help */
339 print_help (); 329 print_help ();
340 exit (STATE_OK); 330 exit (STATE_OK);
@@ -349,8 +339,7 @@ process_arguments (int argc, char **argv)
349 server_port = atoi (optarg); 339 server_port = atoi (optarg);
350 else 340 else
351 die (STATE_UNKNOWN, 341 die (STATE_UNKNOWN,
352 _("Server port an integer (seconds)\nType '%s -h' for additional help\n"), 342 _("Server port an integer\n"));
353 progname);
354 break; 343 break;
355 case 'v': /* variable */ 344 case 'v': /* variable */
356 if (strcmp (optarg, "LOAD") == 0) { 345 if (strcmp (optarg, "LOAD") == 0) {
@@ -403,7 +392,6 @@ process_arguments (int argc, char **argv)
403} 392}
404 393
405 394
406
407void 395void
408print_help (void) 396print_help (void)
409{ 397{
@@ -459,7 +447,6 @@ Notes:\n\
459} 447}
460 448
461 449
462
463void 450void
464print_usage (void) 451print_usage (void)
465{ 452{