summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-30 00:41:41 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-30 00:41:41 (GMT)
commit7df9bd7bab72af4f300eef9dc509a226924de58b (patch)
treed98aa39e6fd369c439928d033e45382331e4755f /plugins/check_snmp.c
parentfba6d9719e362be25a546ed47d0f7a42679fc79a (diff)
downloadmonitoring-plugins-7df9bd7bab72af4f300eef9dc509a226924de58b.tar.gz
more internationalization fixes
internationalization freeze for beta1 git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1067 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 5f22121..ef411e1 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -281,7 +281,7 @@ main (int argc, char **argv)
281 iresult = STATE_CRITICAL; 281 iresult = STATE_CRITICAL;
282 } 282 }
283#else 283#else
284 printf (_("%s UNKNOWN: call for regex which was not a compiled option"), label); 284 printf (_("Call for regex which was not a compiled option"));
285 exit (STATE_UNKNOWN); 285 exit (STATE_UNKNOWN);
286#endif 286#endif
287 } 287 }
@@ -511,7 +511,7 @@ process_arguments (int argc, char **argv)
511 eval_method[jj++] = CRIT_REGEX; 511 eval_method[jj++] = CRIT_REGEX;
512 ii++; 512 ii++;
513#else 513#else
514 printf (_("%s UNKNOWN: call for regex which was not a compiled option"), label); 514 printf (_("call for regex which was not a compiled option"));
515 exit (STATE_UNKNOWN); 515 exit (STATE_UNKNOWN);
516#endif 516#endif
517 break; 517 break;
@@ -530,8 +530,7 @@ process_arguments (int argc, char **argv)
530 labels_size += 8; 530 labels_size += 8;
531 labels = realloc (labels, labels_size); 531 labels = realloc (labels, labels_size);
532 if (labels == NULL) 532 if (labels == NULL)
533 die (STATE_UNKNOWN, 533 die (STATE_UNKNOWN, _("Could not reallocate labels[%d]"), nlabels);
534 _("Could not realloc() labels[%d]"), nlabels);
535 } 534 }
536 labels[nlabels - 1] = optarg; 535 labels[nlabels - 1] = optarg;
537 ptr = thisarg (optarg); 536 ptr = thisarg (optarg);
@@ -543,7 +542,7 @@ process_arguments (int argc, char **argv)
543 labels_size += 8; 542 labels_size += 8;
544 labels = realloc (labels, labels_size); 543 labels = realloc (labels, labels_size);
545 if (labels == NULL) 544 if (labels == NULL)
546 die (STATE_UNKNOWN, _("Could not realloc() labels\n")); 545 die (STATE_UNKNOWN, _("Could not reallocate labels\n"));
547 } 546 }
548 labels++; 547 labels++;
549 ptr = thisarg (ptr); 548 ptr = thisarg (ptr);
@@ -560,8 +559,7 @@ process_arguments (int argc, char **argv)
560 unitv_size += 8; 559 unitv_size += 8;
561 unitv = realloc (unitv, unitv_size); 560 unitv = realloc (unitv, unitv_size);
562 if (unitv == NULL) 561 if (unitv == NULL)
563 die (STATE_UNKNOWN, 562 die (STATE_UNKNOWN, _("Could not reallocate units [%d]\n"), nunits);
564 _("Could not realloc() units [%d]\n"), nunits);
565 } 563 }
566 unitv[nunits - 1] = optarg; 564 unitv[nunits - 1] = optarg;
567 ptr = thisarg (optarg); 565 ptr = thisarg (optarg);
@@ -646,7 +644,7 @@ validate_arguments ()
646 } 644 }
647 else if ( strcmp(seclevel, "authNoPriv") == 0 ) { 645 else if ( strcmp(seclevel, "authNoPriv") == 0 ) {
648 if ( secname == NULL || authpasswd == NULL) { 646 if ( secname == NULL || authpasswd == NULL) {
649 printf (_("Missing secname (%s) or authpassword (%s) ! \n)"),secname, authpasswd ); 647 printf (_("Missing secname (%s) or authpassword (%s) ! \n"),secname, authpasswd );
650 print_usage (); 648 print_usage ();
651 exit (STATE_UNKNOWN); 649 exit (STATE_UNKNOWN);
652 } 650 }
@@ -663,9 +661,7 @@ validate_arguments ()
663 661
664 } 662 }
665 else { 663 else {
666 printf (_("Invalid SNMP version: %s\n"), proto); 664 usage2 (_("Invalid SNMP version"), proto);
667 print_usage ();
668 exit (STATE_UNKNOWN);
669 } 665 }
670 666
671 return OK; 667 return OK;